Skip to content

Commit

Permalink
Int test, DEV-406
Browse files Browse the repository at this point in the history
  • Loading branch information
iranimij committed Feb 28, 2024
1 parent 4faec69 commit 40fe191
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Test/Integration/AddScriptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ protected function setUp(): void
* @magentoConfigFixture current_store web/cookiebot/enabled 1
* @magentoConfigFixture current_store web/cookiebot/id 123-456-789
*/
public function testGoogleConsentOnHomepage(): void
{
$this->dispatch('/');
self::assertStringContainsString('gtag("set", "ads_data_redaction", true);', $this->getResponse()->getBody());
}

/**
* @magentoConfigFixture current_store web/cookiebot/use_google_consent_mode 1
* @magentoConfigFixture current_store web/cookiebot/id 123-456-789
*/
public function testScriptAddedOnHomepage(): void
{
$this->dispatch('/');
Expand Down

0 comments on commit 40fe191

Please sign in to comment.