You are here

public function DataLayerUnitTests::testDataLayerGetEntityTermsReturnsEmptyArray in dataLayer 7

Test DataLayer Get Entity Terms Returns Empty Array.

File

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

Class

DataLayerUnitTests
@file Tests the functionality of the DataLayer module.

Code

public function testDataLayerGetEntityTermsReturnsEmptyArray() {
  $item = $this
    ->setupMockNode();
  $this
    ->setupMockFieldMap();
  $terms = _datalayer_get_entity_terms('node', 'page', $item['node/1']['map'][1]);
  $this
    ->assertEqual(array(), $terms);
}