You are here

public function DataLayerKernelTest::testDataLayerGetEntityDataReturnsEntityDataArray in dataLayer 8

Test DataLayer Get Entity Terms Returns Entity Data Array.

File

tests/src/Kernel/DataLayerKernelTest.php, line 189

Class

DataLayerKernelTest
Kernel test cases for datalayer module.

Namespace

Drupal\Tests\datalayer\Kernel

Code

public function testDataLayerGetEntityDataReturnsEntityDataArray() {
  $this
    ->setupEmptyDataLayer();
  $this
    ->setupMockNodeWithTerm();
  $entity_data = _datalayer_get_entity_data($this->node);
  $this
    ->assertEqual($this
    ->getExpectedEntityDataArray(), $entity_data);
}