You are here

public function DataLayerUnitTests::testDataLayerGetEntityDataReturnsEntityDataArray in dataLayer 7

Test DataLayer Get Entity Terms Returns Entity Data Array.

File

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

Class

DataLayerUnitTests
@file Tests the functionality of the DataLayer module.

Code

public function testDataLayerGetEntityDataReturnsEntityDataArray() {
  $this
    ->setupEmptyDataLayer();
  $item = $this
    ->setupMockNode();
  $this
    ->setupMockEntityTerms();
  $entity_data = _datalayer_get_entity_data($item['node/1']['map'][1], 'node');
  $this
    ->assertEqual($this
    ->getExpectedEntityDataArray(), $entity_data);
}