protected function MetatagAsyncWidgetTest::setUp in Metatag Asynchronous Widget 1.0.x
Same name in this branch
- 1.0.x tests/src/Functional/MetatagAsyncWidgetTest.php \Drupal\Tests\metatag_async_widget\Functional\MetatagAsyncWidgetTest::setUp()
- 1.0.x tests/src/FunctionalJavascript/MetatagAsyncWidgetTest.php \Drupal\Tests\metatag_async_widget\FunctionalJavascript\MetatagAsyncWidgetTest::setUp()
Setup basic environment.
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ MetatagAsyncWidgetTest.php, line 34
Class
- MetatagAsyncWidgetTest
- Ensures that metatag_async_wdiget works with JavaScript disabled.
Namespace
Drupal\Tests\metatag_async_widget\FunctionalCode
protected function setUp() {
parent::setUp();
$this
->drupalPlaceBlock('local_tasks_block');
// Set up a content type.
$name = $this
->randomMachineName() . ' ' . $this
->randomMachineName();
$this
->drupalCreateContentType([
'type' => 'metatag_node',
'name' => $name,
]);
// Create and login user.
$this
->drupalLogin($this
->drupalCreateUser([
'administer content types',
'administer nodes',
'administer node fields',
'bypass node access',
'administer node form display',
]));
}