@@ -14,52 +14,52 @@ class AddScriptTest extends AbstractController
14
14
*/
15
15
private $ script ;
16
16
17
- protected function setUp ()
17
+ protected function setUp (): void
18
18
{
19
19
parent ::setUp ();
20
20
$ this ->script = $ this ->_objectManager ->create (ScriptGenerator::class)->generate ();
21
21
}
22
22
23
23
/**
24
- * @magentoConfigFixture default/ web/cookiebot/enabled 1
25
- * @magentoConfigFixture default/ web/cookiebot/id 123-456-789
24
+ * @magentoConfigFixture current_store web/cookiebot/enabled 1
25
+ * @magentoConfigFixture current_store web/cookiebot/id 123-456-789
26
26
*/
27
27
public function testScriptAddedOnHomepage (): void
28
28
{
29
29
$ this ->dispatch ('/ ' );
30
- self ::assertContains ($ this ->script , $ this ->getResponse ()->getBody ());
30
+ self ::assertStringContainsString ($ this ->script , $ this ->getResponse ()->getBody ());
31
31
}
32
32
33
33
/**
34
34
* @magentoDataFixture Magento/Catalog/_files/product_simple.php
35
- * @magentoConfigFixture default/ web/cookiebot/enabled 1
36
- * @magentoConfigFixture default/ web/cookiebot/id 123-456-789
35
+ * @magentoConfigFixture current_store web/cookiebot/enabled 1
36
+ * @magentoConfigFixture current_store web/cookiebot/id 123-456-789
37
37
*/
38
38
public function testScriptAddedOnProductPage (): void
39
39
{
40
40
$ this ->dispatch ('/catalog/product/view/id/1 ' );
41
- self ::assertContains ($ this ->script , $ this ->getResponse ()->getBody ());
41
+ self ::assertStringContainsString ($ this ->script , $ this ->getResponse ()->getBody ());
42
42
}
43
43
44
44
/**
45
45
* @magentoDataFixture Magento/Catalog/_files/category.php
46
- * @magentoConfigFixture default/ web/cookiebot/enabled 1
47
- * @magentoConfigFixture default/ web/cookiebot/id 123-456-789
46
+ * @magentoConfigFixture current_store web/cookiebot/enabled 1
47
+ * @magentoConfigFixture current_store web/cookiebot/id 123-456-789
48
48
*/
49
49
public function testScriptAddedOnCategoryPage (): void
50
50
{
51
51
$ this ->dispatch ('/catalog/category/view/id/333 ' );
52
- self ::assertContains ($ this ->script , $ this ->getResponse ()->getBody ());
52
+ self ::assertStringContainsString ($ this ->script , $ this ->getResponse ()->getBody ());
53
53
}
54
54
55
55
/**
56
56
* @magentoDataFixture Magento/Cms/_files/pages.php
57
- * @magentoConfigFixture default/ web/cookiebot/enabled 1
58
- * @magentoConfigFixture default/ web/cookiebot/id 123-456-789
57
+ * @magentoConfigFixture current_store web/cookiebot/enabled 1
58
+ * @magentoConfigFixture current_store web/cookiebot/id 123-456-789
59
59
*/
60
60
public function testScriptAddedOnCmsPage (): void
61
61
{
62
62
$ this ->dispatch ('/page100 ' );
63
- self ::assertContains ($ this ->script , $ this ->getResponse ()->getBody ());
63
+ self ::assertStringContainsString ($ this ->script , $ this ->getResponse ()->getBody ());
64
64
}
65
65
}
0 commit comments