function ImageFieldTestBase::setUp
Same name in this branch
- 11.x core/modules/image/tests/src/FunctionalJavascript/ImageFieldTestBase.php \Drupal\Tests\image\FunctionalJavascript\ImageFieldTestBase::setUp()
Same name in other branches
- 9 core/modules/image/tests/src/FunctionalJavascript/ImageFieldTestBase.php \Drupal\Tests\image\FunctionalJavascript\ImageFieldTestBase::setUp()
- 9 core/modules/image/tests/src/Functional/ImageFieldTestBase.php \Drupal\Tests\image\Functional\ImageFieldTestBase::setUp()
- 8.9.x core/modules/image/src/Tests/ImageFieldTestBase.php \Drupal\image\Tests\ImageFieldTestBase::setUp()
- 8.9.x core/modules/image/tests/src/FunctionalJavascript/ImageFieldTestBase.php \Drupal\Tests\image\FunctionalJavascript\ImageFieldTestBase::setUp()
- 8.9.x core/modules/image/tests/src/Functional/ImageFieldTestBase.php \Drupal\Tests\image\Functional\ImageFieldTestBase::setUp()
- 10 core/modules/image/tests/src/FunctionalJavascript/ImageFieldTestBase.php \Drupal\Tests\image\FunctionalJavascript\ImageFieldTestBase::setUp()
- 10 core/modules/image/tests/src/Functional/ImageFieldTestBase.php \Drupal\Tests\image\Functional\ImageFieldTestBase::setUp()
Overrides BrowserTestBase::setUp
3 calls to ImageFieldTestBase::setUp()
- ImageOnTranslatedEntityTest::setUp in core/
modules/ image/ tests/ src/ Functional/ ImageOnTranslatedEntityTest.php - ImageStyleDeleteTest::setUp in core/
modules/ image/ tests/ src/ Functional/ ImageStyleDeleteTest.php - ResponsiveImageFieldDisplayTest::setUp in core/
modules/ responsive_image/ tests/ src/ Functional/ ResponsiveImageFieldDisplayTest.php
3 methods override ImageFieldTestBase::setUp()
- ImageOnTranslatedEntityTest::setUp in core/
modules/ image/ tests/ src/ Functional/ ImageOnTranslatedEntityTest.php - ImageStyleDeleteTest::setUp in core/
modules/ image/ tests/ src/ Functional/ ImageStyleDeleteTest.php - ResponsiveImageFieldDisplayTest::setUp in core/
modules/ responsive_image/ tests/ src/ Functional/ ResponsiveImageFieldDisplayTest.php
File
-
core/
modules/ image/ tests/ src/ Functional/ ImageFieldTestBase.php, line 50
Class
- ImageFieldTestBase
- This class provides methods specifically for testing Image's field handling.
Namespace
Drupal\Tests\image\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create Basic page and Article node types.
if ($this->profile != 'standard') {
$this->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$this->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
}
$this->adminUser = $this->drupalCreateUser([
'access content',
'access administration pages',
'administer site configuration',
'administer content types',
'administer node fields',
'administer nodes',
'create article content',
'edit any article content',
'delete any article content',
'administer image styles',
'administer node display',
]);
$this->drupalLogin($this->adminUser);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.