Skip to content

Commit

Permalink
ACMS-4229: Update Google Tag tour tests as per 2.x version.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra committed Oct 18, 2024
1 parent 512d077 commit ceee729
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function ignoreConfig(array &$form, FormStateInterface $form_state) {
* {@inheritdoc}
*/
public function checkMinConfiguration(): bool {
$uri = $this->config('google_tag.settings')->get('uri');
$uri = $this->config('google_tag.settings')->get('default_google_tag_entity');
return (bool) $uri;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ public function testGoogleTagManager() {
// Assert that save and advanced buttons are present on form.
$assert_session->buttonExists('Save');
// Save Snippet parent URI.
$dummy_tag = 'GTM-000000';
$dummy_tag = 'GT-XXXXXXXXX';
$container->fillField('edit-accounts-0-value', $dummy_tag);
$container->pressButton('Save');
$assert_session->pageTextContains('The configuration options have been saved.');
// Test that the config values we expect are set correctly.
$google_tag_uri = $this->config('google_tag.settings')->get('uri');
$this->assertSame($google_tag_uri, $dummy_tag);
$tag_id = $this->config($this->config('google_tag.settings')->get('default_google_tag_entity'))->get('tag_container_ids');
$this->assertEquals($tag_id, [$dummy_tag]);
}

}

0 comments on commit ceee729

Please sign in to comment.