Projet

Général

Profil

Révision 6ff32cea

Ajouté par Florent Torregrosa il y a environ 9 ans

Update core to 7.36

Voir les différences:

drupal7/modules/image/image.test
330 330
    $this->drupalGet($nested_url);
331 331
    $this->assertResponse(200, 'Image was accessible when a correct token was provided in the URL.');
332 332

  
333
    // Suppress the security token in the URL, then get the URL of a file. Check
334
    // that the security token is not present in the URL but that the image is
335
    // still accessible.
336
    variable_set('image_suppress_itok_output', TRUE);
337
    $generate_url = image_style_url($this->style_name, $original_uri);
338
    $this->assertIdentical(strpos($generate_url, IMAGE_DERIVATIVE_TOKEN . '='), FALSE, 'The security token does not appear in the image style URL.');
339
    $this->drupalGet($generate_url);
340
    $this->assertResponse(200, 'Image was accessible at the URL with a missing token.');
341

  
333 342
    // Check that requesting a nonexistent image does not create any new
334 343
    // directories in the file system.
335 344
    $directory = $scheme . '://styles/' . $this->style_name . '/' . $scheme . '/' . $this->randomName();

Formats disponibles : Unified diff