public function DomainPathTestBase::domainPathBasicSetup in Domain Path 8
Basic setup.
1 call to DomainPathTestBase::domainPathBasicSetup()
- DomainPathTestBase::setUp in tests/
src/ Functional/ DomainPathTestBase.php
File
- tests/
src/ Functional/ DomainPathTestBase.php, line 58
Class
Namespace
Drupal\Tests\domain_path\FunctionalCode
public function domainPathBasicSetup() {
$admin = $this
->drupalCreateUser([
'bypass node access',
'administer content types',
'administer users',
'administer node fields',
'administer node display',
'administer domains',
'administer url aliases',
'administer domain paths',
'edit domain path entity',
'add domain paths',
'edit domain paths',
'delete domain paths',
]);
$this
->drupalLogin($admin);
$this
->config('domain_path.settings')
->set('entity_types', [
'node' => TRUE,
])
->save();
$this
->drupalGet('admin/config/domain_path/domain_path_settings');
$this
->assertSession()
->statusCodeEquals(200);
}