Skip to content

Commit 966d3e0

Browse files
committed
Remove obsolete test
1 parent e584586 commit 966d3e0

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Test/Integration/Block/ScriptTest.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)