public function ToolkitImagemagickFileMetadataTest::setUp in ImageMagick 8.2
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ ToolkitImagemagickFileMetadataTest.php, line 32
Class
- ToolkitImagemagickFileMetadataTest
- Tests that Imagemagick integrates properly with File Metadata Manager.
Namespace
Drupal\Tests\imagemagick\FunctionalCode
public function setUp() {
parent::setUp();
// Set the image factory.
$this->imageFactory = $this->container
->get('image.factory');
// Set the file system.
$this->fileSystem = $this->container
->get('file_system');
// Prepare a directory for test file results.
$this->testDirectory = 'public://imagetest';
// Set the toolkit on the image factory.
$this->imageFactory
->setToolkitId('imagemagick');
}