protected function GTMBaseTestCase::modifySettings in GoogleTagManager 7.2
Modify settings for test purposes.
1 call to GTMBaseTestCase::modifySettings()
- GTMBaseTestCase::testModule in tests/
google_tag.base.test - Test the module.
File
- tests/
google_tag.base.test, line 83
Class
- GTMBaseTestCase
- Tests the Google Tag Manager.
Code
protected function modifySettings() {
// Modify default settings.
// These should propagate to each container created in test.
$settings = \GTMSettings::getInstance();
$settings->flush_snippets = 1;
$settings->debug_output = 1;
$settings->role_toggle = 'include listed';
$settings->role_list = array(
'content viewer' => 'content viewer',
);
$settings
->save();
}