public function AccessGrantFunctionTest::setUp in Access Control Kit 7
Overrides DrupalWebTestCase::setUp().
Overrides DrupalWebTestCase::setUp
File
- ./
access.test, line 1096 - Tests for the access control kit module.
Class
- AccessGrantFunctionTest
- Tests for access grant functions.
Code
public function setUp() {
// Enable the access control kit module.
parent::setUp(array(
'access',
));
// Create the test scheme.
$this->scheme = $this
->createScheme();
$this->scheme = access_scheme_load($this->scheme->sid, TRUE);
// Create two grants for testing.
$this->grants = array();
$this->grants[] = $this
->createGrant($this->scheme);
$this->grants[] = $this
->createGrant($this->scheme);
}