summaryrefslogtreecommitdiff
path: root/modules/node/tests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/tests')
-rw-r--r--modules/node/tests/node_test.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/node/tests/node_test.module b/modules/node/tests/node_test.module
index 3e8cdae04..cfc503da0 100644
--- a/modules/node/tests/node_test.module
+++ b/modules/node/tests/node_test.module
@@ -52,6 +52,10 @@ function node_test_node_grants($account, $op) {
* Implements hook_node_access_records().
*/
function node_test_node_access_records($node) {
+ // Return nothing when testing for empty responses.
+ if (!empty($node->disable_node_access)) {
+ return;
+ }
$grants = array();
if ($node->type == 'article') {
// Create grant in arbitrary article_realm for article nodes.