function DemoUmamiProfileTest::testNavigationDemonstrationWarningMessage
Tests that the navigation warning only appears on the admin pages.
File
-
core/
profiles/ demo_umami/ tests/ src/ Functional/ DemoUmamiProfileTest.php, line 222
Class
- DemoUmamiProfileTest
- Tests demo_umami profile.
Namespace
Drupal\Tests\demo_umami\FunctionalCode
protected function testNavigationDemonstrationWarningMessage() : void {
\Drupal::service('module_installer')->install([
'navigation',
]);
$permissions = [
'access content overview',
'access navigation',
'administer nodes',
'edit any recipe content',
'create recipe content',
'use editorial transition create_new_draft',
];
$this->assertDemonstrationWarningMessage($permissions);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.