public function DataLayerUnitTests::testDataLayerMenuGetAnyObjectReturnsFalseWithIncorrectArgPosition in dataLayer 7
Test DataLayer Menu Get Any Object.
Returns False With Incorrect Arg Position.
File
- tests/
datalayer.unit.test, line 111 - Tests the functionality of the DataLayer module.
Class
- DataLayerUnitTests
- @file Tests the functionality of the DataLayer module.
Code
public function testDataLayerMenuGetAnyObjectReturnsFalseWithIncorrectArgPosition() {
$item = $this
->setupMockNode();
$item['node/1']['load_functions'] = array(
'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);
}