public function AdminToolbarSearchTest::setUp in Admin Toolbar 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ AdminToolbarSearchTest.php, line 35
Class
- AdminToolbarSearchTest
- Test the functionality of admin toolbar search.
Namespace
Drupal\Tests\admin_toolbar\FunctionalJavascriptCode
public function setUp() {
parent::setUp();
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
$this
->drupalPlaceBlock('local_tasks_block');
$this->adminUser = $this
->drupalCreateUser([
'access toolbar',
'administer menu',
'access administration pages',
'administer site configuration',
'administer content types',
'administer node fields',
]);
}