protected function CheckWebTest::setUp in Security Review 8
Sets up the testing environment, logs the user in, populates $check.
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ CheckWebTest.php, line 40
Class
- CheckWebTest
- Contains tests for Check that don't suffice with KernelTestBase.
Namespace
Drupal\Tests\security_review\FunctionalCode
protected function setUp() {
parent::setUp();
// Login.
$this->user = $this
->drupalCreateUser([
'run security checks',
'access security review list',
'access administration pages',
'administer site configuration',
]);
$this
->drupalLogin($this->user);
// Get checks.
$this->checks = security_review_security_review_checks();
}