You are here

public function DataLayerUnitTests::testDataLayerMenuGetAnyObjectReturnsObject in dataLayer 7

Test DataLayer Menu Get Any Object Returns Object.

File

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

Class

DataLayerUnitTests
@file Tests the functionality of the DataLayer module.

Code

public function testDataLayerMenuGetAnyObjectReturnsObject() {
  $item = $this
    ->setupMockNode();
  $return_type = FALSE;
  $object = _datalayer_menu_get_any_object($return_type);
  $this
    ->assertEqual($return_type, 'node');
  $this
    ->assertEqual($object, $item['node/1']['map'][1]);
}