|
20 | 20 | use Magento\Tax\Test\Fixture\TaxRule as TaxRuleFixture;
|
21 | 21 | use Magento\TestFramework\Fixture\Config as ConfigFixture;
|
22 | 22 | use Magento\TestFramework\Fixture\DataFixture;
|
23 |
| -use Magento\TestFramework\Fixture\DataFixtureStorageManager; |
24 | 23 | use Magento\TestFramework\Helper\Bootstrap;
|
25 | 24 | use Magento\TestFramework\ObjectManager;
|
26 | 25 | use PHPUnit\Framework\TestCase;
|
@@ -252,18 +251,21 @@ private function assertAsLowAsPrice(string $priceHtml, float $expectedPrice): vo
|
252 | 251 | }
|
253 | 252 |
|
254 | 253 | /**
|
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 |
256 | 255 | *
|
257 | 256 | * @param string $priceHtml
|
258 | 257 | * @param float $expectedPriceWithTaxes
|
259 | 258 | * @param float $expectedPriceWithoutTaxes
|
260 | 259 | * @return void
|
261 | 260 | */
|
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 { |
264 | 266 | $this->assertMatchesRegularExpression(
|
265 | 267 | 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 |
267 | 269 | $expectedPriceWithTaxes,
|
268 | 270 | $expectedPriceWithTaxes,
|
269 | 271 | $expectedPriceWithoutTaxes
|
|
0 commit comments