public function SecurityReviewTest::testConfigUntrustedRoles in Security Review 8
Tests the 'untrusted_roles' setting.
File
- tests/
src/ Kernel/ SecurityReviewTest.php, line 58
Class
- SecurityReviewTest
- Contains tests related to the SecurityReview class.
Namespace
Drupal\Tests\security_review\KernelCode
public function testConfigUntrustedRoles() {
$this
->assertEquals([], $this->securityReview
->getUntrustedRoles(), 'untrusted_roles empty by default.');
$roles = [
0,
1,
2,
3,
4,
];
$this->securityReview
->setUntrustedRoles($roles);
$this
->assertEquals($roles, $this->securityReview
->getUntrustedRoles(), 'untrusted_roles set to test array.');
}