You are here

public function DataLayerUnitTests::testDataLayerAddWillOverwriteWithFlag in dataLayer 7

Test DataLayer Add Will Overwrite With Flag.

File

tests/datalayer.unit.test, line 65
Tests the functionality of the DataLayer module.

Class

DataLayerUnitTests
@file Tests the functionality of the DataLayer module.

Code

public function testDataLayerAddWillOverwriteWithFlag() {
  $this
    ->setupEmptyDataLayer();
  datalayer_add(array(
    'foo' => 'bar',
  ));
  $this
    ->assertEqual(array(
    'foo' => 'baz',
  ), datalayer_add(array(
    'foo' => 'baz',
  ), TRUE));
}