public function RabbitHoleBehaviorSettingsFormTestBase::testAdministerPermission in Rabbit Hole 8
Same name and namespace in other branches
- 2.x tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorSettingsFormTestBase::testAdministerPermission()
Test the "rabbit hole administer *" permission.
User without "rabbit hole administer *" permission should not be able to see and administer Rabbit Hole settings.
File
- tests/
src/ Functional/ RabbitHoleBehaviorSettingsFormTestBase.php, line 77
Class
- RabbitHoleBehaviorSettingsFormTestBase
- Base class for the Rabbit Hole form additions tests.
Namespace
Drupal\Tests\rabbit_hole\FunctionalCode
public function testAdministerPermission() {
$this
->drupalLogin($this
->drupalCreateUser($this
->getAdminPermissions()));
$this
->createEntityBundle();
$this
->drupalGet($this
->getCreateEntityUrl());
$this
->assertNoRabbitHoleSettings();
}