@@ -38,7 +38,7 @@ public function testStoreCodeIsShownInNonDefaultStoreUrl(): void
38
38
{
39
39
$ store = $ this ->storeRepository ->get ('test ' );
40
40
$ this ->config ->setValue (Store::XML_PATH_STORE_IN_URL , true , ScopeInterface::SCOPE_STORE , $ store ->getCode ());
41
- $ this ->assertContains ('test ' , $ store ->getBaseUrl ());
41
+ $ this ->assertStringContainsString ('test ' , $ store ->getBaseUrl ());
42
42
}
43
43
44
44
/**
@@ -47,21 +47,31 @@ public function testStoreCodeIsShownInNonDefaultStoreUrl(): void
47
47
public function testStoreCodeIsNotShownInNonDefaultStoreUrl (): void
48
48
{
49
49
$ store = $ this ->storeRepository ->get ('test ' );
50
- $ this ->config ->setValue (Store::XML_PATH_STORE_IN_URL , false , ScopeInterface::SCOPE_STORE , $ store ->getCode ());
51
- $ this ->assertNotContains ('test ' , $ store ->getBaseUrl ());
50
+ $ this ->config ->setValue (
51
+ Store::XML_PATH_STORE_IN_URL ,
52
+ false ,
53
+ ScopeInterface::SCOPE_STORE ,
54
+ $ store ->getCode ()
55
+ );
56
+ $ this ->assertStringNotContainsString ('test ' , $ store ->getBaseUrl ());
52
57
}
53
58
54
59
public function testStoreCodeIsNotShownInDefaultStoreUrl (): void
55
60
{
56
61
$ store = $ this ->storeRepository ->get ('default ' );
57
- $ this ->config ->setValue (Store::XML_PATH_STORE_IN_URL , false , ScopeInterface::SCOPE_STORE , $ store ->getCode ());
58
- $ this ->assertNotContains ('default ' , $ store ->getBaseUrl ());
62
+ $ this ->config ->setValue (
63
+ Store::XML_PATH_STORE_IN_URL ,
64
+ false ,
65
+ ScopeInterface::SCOPE_STORE ,
66
+ $ store ->getCode ()
67
+ );
68
+ $ this ->assertStringNotContainsString ('default ' , $ store ->getBaseUrl ());
59
69
}
60
70
61
71
public function testStoreCodeIsShownInDefaultStoreUrl (): void
62
72
{
63
73
$ store = $ this ->storeRepository ->get ('default ' );
64
74
$ this ->config ->setValue (Store::XML_PATH_STORE_IN_URL , true , ScopeInterface::SCOPE_STORE , $ store ->getCode ());
65
- $ this ->assertNotContains ('default ' , $ store ->getBaseUrl ());
75
+ $ this ->assertStringNotContainsString ('default ' , $ store ->getBaseUrl ());
66
76
}
67
- }
77
+ }
0 commit comments