public function DataLayerUnitTests::testDataLayerMenuGetAnyObjectReturnsFalseWithoutLoadFunctionMatch in dataLayer 7
Test DataLayer Menu Get Any Object.
Returns False Without Load Function Match.
File
- tests/
datalayer.unit.test, line 95 - Tests the functionality of the DataLayer module.
Class
- DataLayerUnitTests
- @file Tests the functionality of the DataLayer module.
Code
public function testDataLayerMenuGetAnyObjectReturnsFalseWithoutLoadFunctionMatch() {
$item = $this
->setupMockNode();
$item['node/1']['load_functions'] = array(
1 => 'user_load',
);
$item_static =& drupal_static('menu_get_item');
$item_static = $item;
$return_type = FALSE;
$result = _datalayer_menu_get_any_object($return_type);
$this
->assertEqual($return_type, FALSE);
$this
->assertEqual($result, FALSE);
}