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