public function DataLayerKernelTest::getExpectedEntityDataArray in dataLayer 8
Get expected entity data array.
1 call to DataLayerKernelTest::getExpectedEntityDataArray()
- DataLayerKernelTest::testDataLayerGetEntityDataReturnsEntityDataArray in tests/
src/ Kernel/ DataLayerKernelTest.php - Test DataLayer Get Entity Terms Returns Entity Data Array.
File
- tests/
src/ Kernel/ DataLayerKernelTest.php, line 282
Class
- DataLayerKernelTest
- Kernel test cases for datalayer module.
Namespace
Drupal\Tests\datalayer\KernelCode
public function getExpectedEntityDataArray() {
return [
'entityType' => 'node',
'entityBundle' => 'article',
'entityId' => '1',
'entityUuid' => $this->node->uuid
->getString(),
'entityTitle' => 'My Article',
'entityLangcode' => 'und',
'entityVid' => '1',
'entityName' => 'admin',
'entityUid' => '1',
'entityCreated' => '1435019805',
'entityStatus' => '1',
'entityTaxonomy' => [
'tags' => [
1 => 'someTag',
],
],
];
}