You are here

public function DataLayerUnitTests::testDataLayerAddDoesNotOverwriteByDefault in dataLayer 7

Test DataLayer Add Does Not Overwrite By Default.

File

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

Class

DataLayerUnitTests
@file Tests the functionality of the DataLayer module.

Code

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