function ResponsiveImageFieldUiTest::setUp
Same name in other branches
- 9 core/modules/responsive_image/tests/src/FunctionalJavascript/ResponsiveImageFieldUiTest.php \Drupal\Tests\responsive_image\FunctionalJavascript\ResponsiveImageFieldUiTest::setUp()
- 8.9.x core/modules/responsive_image/src/FunctionalJavascript/ResponsiveImageFieldUiTest.php \Drupal\responsive_image\Tests\ResponsiveImageFieldUiTest::setUp()
- 11.x core/modules/responsive_image/tests/src/FunctionalJavascript/ResponsiveImageFieldUiTest.php \Drupal\Tests\responsive_image\FunctionalJavascript\ResponsiveImageFieldUiTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ responsive_image/ tests/ src/ FunctionalJavascript/ ResponsiveImageFieldUiTest.php, line 47
Class
- ResponsiveImageFieldUiTest
- Tests the responsive image field UI.
Namespace
Drupal\Tests\responsive_image\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
$this->drupalPlaceBlock('system_breadcrumb_block');
// Create a test user.
$admin_user = $this->drupalCreateUser([
'access content',
'administer content types',
'administer node fields',
'administer node form display',
'administer node display',
'bypass node access',
]);
$this->drupalLogin($admin_user);
// Create content type, with underscores.
$type_name = $this->randomMachineName(8) . '_test';
$type = $this->drupalCreateContentType([
'name' => $type_name,
'type' => $type_name,
]);
$this->type = $type->id();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.