/**
  * Skips all checks then runs the checklist. No checks should be ran.
  */
 public function testSkippedRun()
 {
     foreach ($this->checks as $check) {
         $check->skip();
     }
     SecurityReview::runChecklist();
     foreach ($this->checks as $check) {
         $this->assertEqual(0, $check->lastRun(), $check->getTitle() . ' has not been run.');
     }
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     SecurityReview::runChecklist();
 }