X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fsecurity_review%2Fsrc%2FTests%2FCheckWebTest.php;fp=web%2Fmodules%2Fcontrib%2Fsecurity_review%2Fsrc%2FTests%2FCheckWebTest.php;h=0000000000000000000000000000000000000000;hp=1f8a45235fd8d22ffff8c915ce43c51a2792dbfa;hb=419f97be044f1aebd0713921ee604841127e9e84;hpb=052617e40b525f8b817d84c29b1c04951f427069 diff --git a/web/modules/contrib/security_review/src/Tests/CheckWebTest.php b/web/modules/contrib/security_review/src/Tests/CheckWebTest.php deleted file mode 100644 index 1f8a45235..000000000 --- a/web/modules/contrib/security_review/src/Tests/CheckWebTest.php +++ /dev/null @@ -1,74 +0,0 @@ -user = $this->drupalCreateUser( - [ - 'run security checks', - 'access security review list', - 'access administration pages', - 'administer site configuration', - ] - ); - $this->drupalLogin($this->user); - - // Get checks. - $this->checks = security_review_security_review_checks(); - } - - /** - * Tests Check::skip(). - * - * Checks whether skip() marks the check as skipped, and checks the - * skippedBy() value. - */ - public function testSkipCheck() { - foreach ($this->checks as $check) { - $check->skip(); - - $is_skipped = $check->isSkipped(); - $skipped_by = $check->skippedBy(); - - $this->assertTrue($is_skipped, $check->getTitle() . ' skipped.'); - $this->assertEqual($this->user->id(), $skipped_by->id(), 'Skipped by ' . $skipped_by->label()); - } - } - -}