function DomainInstallTest::testDomainGrantAll in Domain Access 7.3
File
- tests/
domain.test, line 170 - Simpletest for Domain Access.
Class
Code
function testDomainGrantAll() {
domain_set_default_grant(TRUE);
$check = db_query_range("SELECT 1 FROM {node_access} WHERE realm = :realm AND gid = :gid", 0, 1, array(
':realm' => 'domain_all',
':gid' => 0,
))
->fetchField();
$this
->assertTrue($check > 0, t('Domain all grant stored correctly !check.', array(
'!check' => $check,
)));
}