You are here

public function DataLayerFunctionalTest::testDataLayerJsLanguageSettings in dataLayer 8

Test DataLayer JS language settings.

File

tests/src/Functional/DataLayerFunctionalTest.php, line 61

Class

DataLayerFunctionalTest
Functional test cases for datalayer module.

Namespace

Drupal\Tests\datalayer\Functional

Code

public function testDataLayerJsLanguageSettings() {
  $output = $this
    ->drupalGet('node');
  $assert = $this
    ->assertSession();
  $assert
    ->pageTextContains('"dataLayer":{"defaultLang"');
}