public function ChecklistWebTest::testSkippedRun in Security Review 8
Skips all checks then runs the checklist. No checks should be ran.
File
- tests/
src/ Functional/ ChecklistWebTest.php, line 91
Class
- ChecklistWebTest
- Contains tests related to the SecurityReview class.
Namespace
Drupal\Tests\security_review\FunctionalCode
public function testSkippedRun() {
foreach ($this->checks as $check) {
$check
->skip();
}
$this->checklist
->runChecklist();
foreach ($this->checks as $check) {
$this
->assertEqual(0, $check
->lastRun(), $check
->getTitle() . ' has not been run.');
}
}