function ImageStylesHTTPHeadersTestCase::setUp

Overrides ImageFieldTestCase::setUp

File

modules/image/image.test, line 2146

Class

ImageStylesHTTPHeadersTestCase
Tests for correct file size, dimensions and HTTP headers after scaling.

Code

public function setUp() {
    parent::setUp('image_module_test');
    $this->styleName = 'style_foo_scale';
    $style = image_style_save(array(
        'name' => $this->styleName,
        'label' => $this->randomString(),
    ));
    $this->styleId = $style['isid'];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.