diff --git a/Test/Integration/AddScriptTest.php b/Test/Integration/AddScriptTest.php index 6aeccc6..3450b4f 100644 --- a/Test/Integration/AddScriptTest.php +++ b/Test/Integration/AddScriptTest.php @@ -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()); } /**