File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Block/Product Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public function testGetAddToCartUrlWithSimpleProduct(): void
114114 $ product = $ this ->productRepository ->get ('simple-1 ' );
115115 $ url = $ this ->block ->getAddToCartUrl ($ product );
116116 $ this ->assertStringEndsWith (sprintf ('product/%s/ ' , $ product ->getId ()), $ url );
117- $ this ->assertContains ('checkout/cart/add ' , $ url );
117+ $ this ->assertStringContainsString ('checkout/cart/add ' , $ url );
118118 }
119119
120120 /**
@@ -247,7 +247,7 @@ public function testGetProductPriceHtml(): void
247247 ]
248248 );
249249 $ finalPriceHtml = $ this ->block ->getProductPriceHtml ($ product , FinalPrice::PRICE_CODE );
250- $ this ->assertContains ('price- ' . FinalPrice::PRICE_CODE , $ finalPriceHtml );
251- $ this ->assertContains ('product-price- ' . $ product ->getId (), $ finalPriceHtml );
250+ $ this ->assertStringContainsString ('price- ' . FinalPrice::PRICE_CODE , $ finalPriceHtml );
251+ $ this ->assertStringContainsString ('product-price- ' . $ product ->getId (), $ finalPriceHtml );
252252 }
253253}
You can’t perform that action at this time.
0 commit comments