You are here

protected function GTMMultipleTest::checkPageResponseInline in GoogleTagManager 8

Inspect the page response (based on inline snippet).

1 call to GTMMultipleTest::checkPageResponseInline()
GTMMultipleTest::checkPageResponse in tests/src/Functional/GTMMultipleTest.php
Inspect the page response.

File

tests/src/Functional/GTMMultipleTest.php, line 95

Class

GTMMultipleTest
Tests the Google Tag Manager for a site with multiple containers.

Namespace

Drupal\Tests\google_tag\Functional

Code

protected function checkPageResponseInline() {
  foreach ($this->variables as $key => $variables) {
    $this
      ->drupalGet('');
    $message = "Start on container {$key}";
    parent::assertTrue(TRUE, $message);
    foreach ($this->types as $type) {
      $contents = $this
        ->getSnippetFromCache($key, $type);
      $function = "verify{$type}TagInline";
      $this
        ->{$function}($this->variables[$key], $contents);
    }
  }
}