public function AccessSchemeFunctionTest::setUp in Access Control Kit 7
Overrides DrupalWebTestCase::setUp().
Overrides DrupalWebTestCase::setUp
File
- ./
access.test, line 445 - Tests for the access control kit module.
Class
- AccessSchemeFunctionTest
- Tests for access scheme functions.
Code
public function setUp() {
// Enable the access control kit module.
parent::setUp(array(
'access',
));
// Create two schemes for testing.
$this->schemes = array();
$this->schemes[] = $this
->createScheme();
$this->schemes[] = $this
->createScheme();
// Attach a handler to each.
foreach ($this->schemes as $scheme) {
entity_get_controller('access_scheme')
->attachHandler($scheme, 'node', 'ACKEntityField');
access_scheme_save($scheme);
}
}