Skip to content

Commit

Permalink
Update Consent Mode php test to check for new comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbowler committed Jul 2, 2024
1 parent dbdfa4d commit 8885599
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function test_renders_consent_mode_snippet_when_enabled() {

$output = $this->capture_action( 'wp_head' );

$this->assertStringContainsString( 'Google tag (gtag.js) Consent Mode snippet added by Site Kit', $output );
$this->assertStringContainsString( 'Google tag (gtag.js) Consent Mode dataLayer added by Site Kit', $output );
}

public function test_does_not_render_consent_mode_snippet_when_disabled() {
Expand All @@ -60,7 +60,7 @@ public function test_does_not_render_consent_mode_snippet_when_disabled() {

$output = $this->capture_action( 'wp_head' );

$this->assertStringNotContainsString( 'Google tag (gtag.js) Consent Mode snippet added by Site Kit', $output );
$this->assertStringNotContainsString( 'Google tag (gtag.js) Consent Mode dataLayer added by Site Kit', $output );
}

public function test_register__googlesitekit_consent_mode_status() {
Expand Down

0 comments on commit 8885599

Please sign in to comment.