File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -35,25 +35,4 @@ public function testValidBlockContent()
3535 $ body = $ this ->getResponse ()->getBody (); // @phpstan-ignore-line
3636 $ this ->assertTrue ((bool )strpos ($ body , 'yireoGoogleTagManager ' ), 'Script not found in HTML body: ' . $ body );
3737 }
38-
39- /**
40- * @magentoConfigFixture current_store googletagmanager2/settings/enabled 1
41- * @magentoConfigFixture current_store googletagmanager2/settings/method 1
42- * @magentoConfigFixture current_store googletagmanager2/settings/id test
43- */
44- public function testCspNonceInScript ()
45- {
46- $ this ->assertEnabledFlagIsWorking ();
47-
48- $ this ->layout ->getUpdate ()->addPageHandles (['empty ' , '1column ' ]);
49- $ this ->layout ->generateXml ();
50-
51- $ block = $ this ->layout ->createBlock (Template::class);
52- $ block ->setNameInLayout ('yireo_googletagmanager2.hyva_checkout.data-layer.component ' );
53- $ block ->setTemplate ('Yireo_GoogleTagManager2::hyva_checkout/data-layer.phtml ' );
54- $ block ->setData ('begin_checkout_event ' , ObjectManager::getInstance ()->get (BeginCheckout::class));
55-
56- $ html = $ block ->toHtml ();
57- $ this ->assertStringContainsString ('nonce=" ' , $ html );
58- }
5938}
You can’t perform that action at this time.
0 commit comments