예제 #1
0
 /**
  * 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();
 }
예제 #2
0
 /**
  * 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();
     }
 }
예제 #3
0
 /**
  * Sets up the environment, populates the $checks variable.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->checks = security_review_security_review_checks();
 }