protected function ChecklistTest::setUp in Security Review 8
Sets up the environment, populates the $checks variable.
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ ChecklistTest.php, line 60
Class
- ChecklistTest
- Contains test for Checklist.
Namespace
Drupal\Tests\security_review\KernelCode
protected function setUp() {
parent::setUp();
$this->checklist = \Drupal::getContainer()
->get('security_review.checklist');
$this->realChecks = security_review_security_review_checks();
$this->testChecks = security_review_test_security_review_checks();
$this->checks = array_merge($this->realChecks, $this->testChecks);
Checklist::clearCache();
$this->checkIDs = [];
foreach ($this->checks as $check) {
$this->checkIDs[] = $check
->id();
}
}