protected function MenuLinkModalTest::setUp in Menu Link Modal 8
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/MenuLinkModalTest.php \Drupal\Tests\menu_link_modal\FunctionalJavascript\MenuLinkModalTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ MenuLinkModalTest.php, line 62
Class
- MenuLinkModalTest
- Tests link added in menu opens in modal with this module.
Namespace
Drupal\Tests\menu_link_modal\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
// Create Basic page node type.
if ($this->profile != 'standard') {
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
'display_submitted' => FALSE,
]);
}
$this->adminUser = $this
->drupalCreateUser($this->permissions);
$this
->drupalLogin($this->adminUser);
}