/** * Sets up the testing environment, logs the user in, populates $check. */ protected function setUp() { parent::setUp(); // Login. $this->user = $this->drupalCreateUser(array('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(); }
/** * Sets up the environment, populates the $checks variable. */ protected function setUp() { parent::setUp(); $this->checks = security_review_security_review_checks(); Checklist::clearCache(); $this->checkIDs = array(); foreach ($this->checks as $check) { $this->checkIDs[] = $check->id(); } }
/** * Sets up the environment, populates the $checks variable. */ protected function setUp() { parent::setUp(); $this->checks = security_review_security_review_checks(); }