protected function GTMRealmTestCase::createData in GoogleTagManager 7.2
Same name and namespace in other branches
- 7 tests/google_tag.realm.test \GTMRealmTestCase::createData()
Create test data: configuration variables.
Overrides GTMBaseTestCase::createData
File
- tests/
google_tag.realm.test, line 32
Class
- GTMRealmTestCase
- Tests the Google Tag Manager for a site with realms.
Code
protected function createData() {
$this->variables['default'] = (object) array(
'name' => 'default',
'label' => 'Default',
'status' => TRUE,
'weight' => 3,
'container_id' => 'GTM-default',
'environment_id' => 'env-7',
'environment_token' => 'ddddddddddddddddddddd',
'include_environment' => '1',
'realm_toggle' => 'include listed',
'realm_list' => array(
'global:default' => 'global:default',
),
);
// Set variables for gtm_test:primary.
$this->variables['primary'] = (object) array(
'name' => 'primary',
'label' => 'Primary',
'status' => TRUE,
'weight' => 2,
'container_id' => 'GTM-primary',
'environment_id' => 'env-1',
'environment_token' => 'ppppppppppppppppppppp',
'include_environment' => '1',
'realm_toggle' => 'include listed',
'realm_list' => array(
'gtm_test:primary' => 'gtm_test:primary',
),
);
// Set variables for gtm_test:secondary.
$this->variables['secondary'] = (object) array(
'name' => 'secondary',
'label' => 'Secondary',
'status' => TRUE,
'weight' => 1,
'container_id' => 'GTM-secondary',
'environment_id' => 'env-2',
'environment_token' => 'sssssssssssssssssssss',
'include_environment' => '1',
'realm_toggle' => 'include listed',
'realm_list' => array(
'gtm_test:secondary' => 'gtm_test:secondary',
),
);
}