You are here

public function DataLayerUnitTests::testDataLayerMenuGetAnyObjectReturnsFalseWithoutLoadFunctions in dataLayer 7

Test DataLayer Menu Get Any Object.

Returns False Without Load Functions.

File

tests/datalayer.unit.test, line 79
Tests the functionality of the DataLayer module.

Class

DataLayerUnitTests
@file Tests the functionality of the DataLayer module.

Code

public function testDataLayerMenuGetAnyObjectReturnsFalseWithoutLoadFunctions() {
  $item = $this
    ->setupMockNode();
  $item['node/1']['load_functions'] = NULL;
  $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);
}