You are here

public function ChecklistTest::testChecksProvided in Security Review 8

Tests Checklist::getChecks().

Tests whether getChecks() contains all the checks that security_review_security_review_checks() and security_review_test_security_review_checks() returns.

File

tests/src/Kernel/ChecklistTest.php, line 83

Class

ChecklistTest
Contains test for Checklist.

Namespace

Drupal\Tests\security_review\Kernel

Code

public function testChecksProvided() {
  foreach ($this->checklist
    ->getChecks() as $check) {
    $this
      ->assertTrue(in_array($check
      ->id(), $this->checkIDs), $check
      ->getTitle() . ' found.');
  }
}