You are here

protected function ToolkitGdTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Image/ToolkitGdTest.php \Drupal\system\Tests\Image\ToolkitGdTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/system/src/Tests/Image/ToolkitGdTest.php, line 54
Contains \Drupal\system\Tests\Image\ToolkitGdTest.

Class

ToolkitGdTest
Tests that core image manipulations work properly: scale, resize, rotate, crop, scale and crop, and desaturate.

Namespace

Drupal\system\Tests\Image

Code

protected function setUp() {
  parent::setUp();

  // Set the image factory service.
  $this->imageFactory = $this->container
    ->get('image.factory');
}