function SuperUserAccessPolicyTest::testApplies
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Session/SuperUserAccessPolicyTest.php \Drupal\Tests\Core\Session\SuperUserAccessPolicyTest::testApplies()
Tests applies.
@legacy-covers ::applies
File
-
core/
tests/ Drupal/ Tests/ Core/ Session/ SuperUserAccessPolicyTest.php, line 55
Class
Namespace
Drupal\Tests\Core\SessionCode
public function testApplies() : void {
$this->assertTrue($this->accessPolicy
->applies(AccessPolicyInterface::SCOPE_DRUPAL));
$this->assertFalse($this->accessPolicy
->applies('another scope'));
$this->assertFalse($this->accessPolicy
->applies($this->randomString()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.