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 40fe191 commit 45f3a27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Test/Integration/AddScriptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ protected function setUp(): void
* @magentoConfigFixture current_store web/cookiebot/enabled 1
* @magentoConfigFixture current_store web/cookiebot/id 123-456-789
*/
public function testGoogleConsentOnHomepage(): void
public function testScriptAddedOnHomepage(): void
{
$this->dispatch('/');
self::assertStringContainsString('gtag("set", "ads_data_redaction", true);', $this->getResponse()->getBody());
self::assertStringContainsString($this->script, $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
public function testGoogleConsentScriptAddedOnHomepage(): void
{
$this->dispatch('/');
self::assertStringContainsString($this->script, $this->getResponse()->getBody());
self::assertStringContainsString('gtag("set", "ads_data_redaction", true);', $this->getResponse()->getBody());
}

/**
Expand Down

0 comments on commit 45f3a27

Please sign in to comment.