You are here

public function DataLayerKernelTest::testDataLayerGetEntityTermsReturnsEmptyArray in dataLayer 8

Test DataLayer Get Entity Terms Returns Empty Array.

File

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

Class

DataLayerKernelTest
Kernel test cases for datalayer module.

Namespace

Drupal\Tests\datalayer\Kernel

Code

public function testDataLayerGetEntityTermsReturnsEmptyArray() {
  $this
    ->setupMockNode();
  $terms = _datalayer_get_entity_terms($this->node);
  $this
    ->assertEqual([], $terms);
}