public function TaxonomyAccessTermGrantTest::testSetUpCheck in Taxonomy Access Control 7
Verifies that all grants were properly stored during setup.
File
- ./
taxonomy_access.test, line 1489 - Automated tests for the Taxonomy Access Control module.
Class
- TaxonomyAccessTermGrantTest
- Tests term grants for all possible grant combinations.
Code
public function testSetUpCheck() {
// Check that all records were properly stored.
foreach ($this->setUpAssertions as $assertion) {
$r = db_query($assertion['query'], $assertion['args'])
->fetchAssoc();
$this
->assertTrue(is_array($r) && $r['grant_create'] == $assertion['create'] && $r['grant_list'] == $assertion['list'], $assertion['message']);
}
}