You are here

public function DataLayerKernelTest::testDataLayerMenuGetAnyObjectReturnsObject in dataLayer 8

Test DataLayer Menu Get Any Object Returns Object.

File

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

Class

DataLayerKernelTest
Kernel test cases for datalayer module.

Namespace

Drupal\Tests\datalayer\Kernel

Code

public function testDataLayerMenuGetAnyObjectReturnsObject() {
  $this
    ->setupMockRouteMatch();
  $object = _datalayer_menu_get_any_object();
  $this
    ->assertTrue(is_object($object));
  $this
    ->assertEqual($object
    ->getEntityTypeId(), 'node');
}