protected function ImageStyleWarmerTestBase::setUp in Image Style Warmer 8
Overrides BrowserTestBase::setUp
2 calls to ImageStyleWarmerTestBase::setUp()
- ImageStyleWarmerCustomModuleTest::setUp in tests/
src/ Functional/ ImageStyleWarmerCustomModuleTest.php - ImageStyleWarmerGeneralTest::setUp in tests/
src/ Functional/ ImageStyleWarmerGeneralTest.php
2 methods override ImageStyleWarmerTestBase::setUp()
- ImageStyleWarmerCustomModuleTest::setUp in tests/
src/ Functional/ ImageStyleWarmerCustomModuleTest.php - ImageStyleWarmerGeneralTest::setUp in tests/
src/ Functional/ ImageStyleWarmerGeneralTest.php
File
- tests/
src/ Functional/ ImageStyleWarmerTestBase.php, line 56
Class
- ImageStyleWarmerTestBase
- Image Style Warmer test base class.
Namespace
Drupal\Tests\image_style_warmer\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'administer site configuration',
]);
// Create test image style for initial tests.
$this->testInitialStyle = $this->container
->get('entity_type.manager')
->getStorage('image_style')
->create([
'name' => 'test_initial',
'label' => 'Test initial image style',
'effects' => [],
]);
$this->testInitialStyle
->save();
// Create test image style for queue tests.
$this->testQueueStyle = $this->container
->get('entity_type.manager')
->getStorage('image_style')
->create([
'name' => 'test_queue',
'label' => 'Test queue image style',
'effects' => [],
]);
$this->testQueueStyle
->save();
}