You are here

public function DataLayerWebTests::testDataLayerVariableOutputByName in dataLayer 7

Test DataLayer variable output by name.

This will be helpful when/if the variable name can be customized.

See also

https://www.drupal.org/node/2300577

File

tests/datalayer.web.test, line 42
Tests the functionality of the DataLayer module.

Class

DataLayerWebTests
@file Tests the functionality of the DataLayer module.

Code

public function testDataLayerVariableOutputByName() {
  $output = $this
    ->drupalGet('node');
  $this
    ->assertRaw('dataLayer = [{');
}