You are here

public function TaxonomyAccessNodeGrantTest::testSetUpCheck in Taxonomy Access Control 7

Verifies that all grants were properly stored during setup.

File

./taxonomy_access.test, line 1287
Automated tests for the Taxonomy Access Control module.

Class

TaxonomyAccessNodeGrantTest
Tests node access 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'])
      ->fetchField();
    $this
      ->assertTrue(is_numeric($r) && $r == $assertion['grant'], $assertion['message']);
  }
}