You are here

public static function Checklist::clearCache in Security Review 8

Clears the cached checks.

3 calls to Checklist::clearCache()
ChecklistTest::setUp in tests/src/Kernel/ChecklistTest.php
Sets up the environment, populates the $checks variable.
ChecklistTest::testEnabledChecks in tests/src/Kernel/ChecklistTest.php
Tests whether checks returned by getEnabledChecks() are all enabled.
ChecklistWebTest::setUp in tests/src/Functional/ChecklistWebTest.php
Sets up the testing environment.

File

src/Checklist.php, line 64

Class

Checklist
Contains static functions for handling checks throughout every module.

Namespace

Drupal\security_review

Code

public static function clearCache() {
  static::$cachedChecks = [];
}