protected function SpacesOGTestCase::nodeAccess in Spaces 6.3
Same name and namespace in other branches
- 7.3 spaces_og/tests/spaces_og.test \SpacesOGTestCase::nodeAccess()
- 7 spaces_og/tests/spaces_og.test \SpacesOGTestCase::nodeAccess()
Get node_access entries.
1 call to SpacesOGTestCase::nodeAccess()
- SpacesOGTestAccess::testAccess in spaces_og/
tests/ spaces_og.test - Test access control lists. The purpose of this test is to verify that spaces presets result in proper OG settings. Further, resulting access grants and denies are tested to catch changes in OG API that potentially break assumed access walls.
File
- spaces_og/
tests/ spaces_og.test, line 125
Class
- SpacesOGTestCase
- Base test class for Spaces OG tests.
Code
protected function nodeAccess($nid) {
$rows = array();
$result = db_query('select * from {node_access} where nid = %d', $nid);
while ($row = db_fetch_array($result)) {
$rows[$row['realm']] = $row;
}
return $rows;
}