You are here

public function DataLayerUnitTests::getExpectedEntityDataArray in dataLayer 7

Get expected entity data array.

1 call to DataLayerUnitTests::getExpectedEntityDataArray()
DataLayerUnitTests::testDataLayerGetEntityDataReturnsEntityDataArray in tests/datalayer.unit.test
Test DataLayer Get Entity Terms Returns Entity Data Array.

File

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

Class

DataLayerUnitTests
@file Tests the functionality of the DataLayer module.

Code

public function getExpectedEntityDataArray() {
  return array(
    'entityType' => 'node',
    'entityBundle' => 'article',
    'entityId' => 1,
    'entityLabel' => 'My Article',
    'entityTaxonomy' => array(
      'tags' => array(
        1 => 'someTag',
      ),
    ),
  );
}