You are here

public function DataLayerKernelTest::testDataLayerAddWillAddData in dataLayer 8

Test DataLayer Add Will Add Data.

File

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

Class

DataLayerKernelTest
Kernel test cases for datalayer module.

Namespace

Drupal\Tests\datalayer\Kernel

Code

public function testDataLayerAddWillAddData() {
  $this
    ->setupEmptyDataLayer();
  $this
    ->assertEqual([
    'foo' => 'bar',
  ], datalayer_add([
    'foo' => 'bar',
  ]));
}