You are here

function NodesInBlockTestCase::_getVisibility in Nodes In Block 7

Helper function to get visibility from block.

1 call to NodesInBlockTestCase::_getVisibility()
NodesInBlockTestCase::testNodeSubmissions in ./nodesinblock.test
Test submitting of nodes and see if they appear in blocks and how they are rendered.

File

./nodesinblock.test, line 93
Tests for Nodes in block

Class

NodesInBlockTestCase
@file Tests for Nodes in block

Code

function _getVisibility($delta) {
  return db_query("SELECT pages from {block} WHERE module = 'nodesinblock' AND delta = :delta", array(
    ':delta' => $delta,
  ))
    ->fetchField();
}