X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Fsecurity_review%2Ftests%2Fsrc%2FKernel%2FSecurityReviewTest.php;fp=web%2Fmodules%2Fcontrib%2Fsecurity_review%2Ftests%2Fsrc%2FKernel%2FSecurityReviewTest.php;h=0000000000000000000000000000000000000000;hb=419f97be044f1aebd0713921ee604841127e9e84;hp=08066fa9636308bd6ea592c24e4fb83af12b5dcf;hpb=052617e40b525f8b817d84c29b1c04951f427069;p=yaffs-website diff --git a/web/modules/contrib/security_review/tests/src/Kernel/SecurityReviewTest.php b/web/modules/contrib/security_review/tests/src/Kernel/SecurityReviewTest.php deleted file mode 100644 index 08066fa96..000000000 --- a/web/modules/contrib/security_review/tests/src/Kernel/SecurityReviewTest.php +++ /dev/null @@ -1,76 +0,0 @@ -installConfig(static::$modules); - $this->securityReview = \Drupal::getContainer()->get('security_review'); - } - - /** - * Tests the 'logging' setting. - */ - public function testConfigLogging() { - $this->assertTrue($this->securityReview->isLogging(), 'Logging enabled by default.'); - $this->securityReview->setLogging(FALSE); - $this->assertFalse($this->securityReview->isLogging(), 'Logging disabled.'); - } - - /** - * Tests the 'configured' setting. - */ - public function testConfigConfigured() { - $this->assertFalse($this->securityReview->isConfigured(), 'Not configured by default.'); - $this->securityReview->setConfigured(TRUE); - $this->assertTrue($this->securityReview->isConfigured(), 'Set to configured.'); - } - - /** - * Tests the 'untrusted_roles' setting. - */ - 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.'); - } - - /** - * Tests the 'last_run' setting. - */ - public function testConfigLastRun() { - $this->assertEquals(0, $this->securityReview->getLastRun(), 'last_run is 0 by default.'); - $time = time(); - $this->securityReview->setLastRun($time); - $this->assertEquals($time, $this->securityReview->getLastRun(), 'last_run set to now.'); - } - -}