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()
- 10 core/modules/responsive_image/tests/src/FunctionalJavascript/ResponsiveImageFieldUiTest.php \Drupal\Tests\responsive_image\FunctionalJavascript\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/ src/ FunctionalJavascript/ ResponsiveImageFieldUiTest.php, line 32
Class
- ResponsiveImageFieldUiTest
- Class ResponsiveImageFieldUiTest.
Namespace
Drupal\responsive_image\TestsCode
protected function setUp() {
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 = strtolower($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.