Skip to content

Commit 5768d63

Browse files
committed
ACP2E-1634: fixed static errors
1 parent b23b9e5 commit 5768d63

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Block/Product/ListProduct/CheckProductPriceTest.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Magento\Tax\Test\Fixture\TaxRule as TaxRuleFixture;
2121
use Magento\TestFramework\Fixture\Config as ConfigFixture;
2222
use Magento\TestFramework\Fixture\DataFixture;
23-
use Magento\TestFramework\Fixture\DataFixtureStorageManager;
2423
use Magento\TestFramework\Helper\Bootstrap;
2524
use Magento\TestFramework\ObjectManager;
2625
use PHPUnit\Framework\TestCase;
@@ -252,18 +251,21 @@ private function assertAsLowAsPrice(string $priceHtml, float $expectedPrice): vo
252251
}
253252

254253
/**
255-
* Assert that price html contain "As low as" label and expected price amount.
254+
* Assert that price html contain "As low as" label and expected price amount with taxes
256255
*
257256
* @param string $priceHtml
258257
* @param float $expectedPriceWithTaxes
259258
* @param float $expectedPriceWithoutTaxes
260259
* @return void
261260
*/
262-
private function assertAsLowAsPriceWithTaxes(string $priceHtml, float $expectedPriceWithTaxes, float $expectedPriceWithoutTaxes): void
263-
{
261+
private function assertAsLowAsPriceWithTaxes(
262+
string $priceHtml,
263+
float $expectedPriceWithTaxes,
264+
float $expectedPriceWithoutTaxes
265+
): void {
264266
$this->assertMatchesRegularExpression(
265267
sprintf(
266-
'/<span class="price-label">As low as<\/span> (.)+<span.*data-price-amount="%s".*>\\$%01.2f<\/span>(.)+<span class="price">\$%01.2f<\/span>/',
268+
'/<span class="price-label">As low as<\/span>(.)+<span.*data-price-amount="%s".*>\\$%01.2f<\/span>(.)+<span class="price">\$%01.2f<\/span>/',//phpcs:ignore
267269
$expectedPriceWithTaxes,
268270
$expectedPriceWithTaxes,
269271
$expectedPriceWithoutTaxes

0 commit comments

Comments
 (0)