Skip to content

Commit 0e50513

Browse files
MC-29866: getBasePrice function returns a string sometimes
1 parent 44f9c0a commit 0e50513

File tree

1 file changed

+8
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Type

1 file changed

+8
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Type/PriceTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,14 @@ public function testGetFormatedPrice(): void
116116
*/
117117
public function testCalculatePrice(): void
118118
{
119-
$this->assertEquals(10, $this->productPrice->calculatePrice(10, 8, '1970-12-12 23:59:59', '1971-01-01 01:01:01'));
120-
$this->assertEquals(8, $this->productPrice->calculatePrice(10, 8, '1970-12-12 23:59:59', '2034-01-01 01:01:01'));
119+
$this->assertEquals(
120+
10,
121+
$this->productPrice->calculatePrice(10, 8, '1970-12-12 23:59:59', '1971-01-01 01:01:01')
122+
);
123+
$this->assertEquals(
124+
8,
125+
$this->productPrice->calculatePrice(10, 8, '1970-12-12 23:59:59', '2034-01-01 01:01:01')
126+
);
121127
}
122128

123129
/**

0 commit comments

Comments
 (0)