You are here

protected function GTMMultipleTest::createData in GoogleTagManager 8

Create test data: configuration variables and users.

Overrides GTMTestBase::createData

File

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

Class

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

Namespace

Drupal\Tests\google_tag\Functional

Code

protected function createData() {
  parent::createData();
  $this->variables['default'] = (object) [
    'id' => 'default',
    'label' => 'Default',
    'weight' => 3,
    'container_id' => 'GTM-default',
    'include_environment' => '1',
    'environment_id' => 'env-7',
    'environment_token' => 'ddddddddddddddddddddd',
  ];
  $this->variables['primary'] = (object) [
    'id' => 'primary',
    'label' => 'Primary',
    'weight' => 2,
    'container_id' => 'GTM-primary',
    'include_environment' => '1',
    'environment_id' => 'env-1',
    'environment_token' => 'ppppppppppppppppppppp',
  ];
  $this->variables['secondary'] = (object) [
    'id' => 'secondary',
    'label' => 'Secondary',
    'weight' => 1,
    'container_id' => 'GTM-secondary',
    'include_environment' => '1',
    'environment_id' => 'env-2',
    'environment_token' => 'sssssssssssssssssssss',
  ];
}