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
114
114
$ product = $ this ->productRepository ->get ('simple-1 ' );
115
115
$ url = $ this ->block ->getAddToCartUrl ($ product );
116
116
$ this ->assertStringEndsWith (sprintf ('product/%s/ ' , $ product ->getId ()), $ url );
117
- $ this ->assertContains ('checkout/cart/add ' , $ url );
117
+ $ this ->assertStringContainsString ('checkout/cart/add ' , $ url );
118
118
}
119
119
120
120
/**
@@ -247,7 +247,7 @@ public function testGetProductPriceHtml(): void
247
247
]
248
248
);
249
249
$ 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 );
252
252
}
253
253
}
You can’t perform that action at this time.
0 commit comments