You are here

public function Test::run in Security Review 8

The actual procedure of carrying out the check.

Return value

\Drupal\security_review\CheckResult The result of running the check.

Overrides Check::run

File

tests/modules/security_review_test/src/Test.php, line 30

Class

Test
A test security check for testing extensibility.

Namespace

Drupal\security_review_test

Code

public function run() {
  $findings = [];
  for ($i = 0; $i < 20; ++$i) {
    $findings[] = rand(0, 1) ? rand(0, 10) : 'string';
  }
  return $this
    ->createResult(CheckResult::INFO, $findings);
}