Skip to content

Commit

Permalink
Merge pull request #7479 from spryker/bugfix/assert
Browse files Browse the repository at this point in the history
TE-7217 Prefer assertSame() over assertEquals() for scalar values.
  • Loading branch information
dereuromark authored Aug 26, 2020
2 parents 5344f14 + 6be1787 commit c710f11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function testGetOmsReservedProductQuantityForSkuShouldReturnCorrectReserv
$reserved = $this->getOmsFacade()->getOmsReservedProductQuantityForSku(static::TEST_SKU_1, $storeTransfer);

//Assert
$this->assertEquals(
$this->assertSame(
$reservationQuantity->toInt(),
$reserved->toInt(),
'Calculated reserved amount does not match expected value.'
Expand All @@ -257,7 +257,7 @@ public function testGetOmsReservedProductQuantityForSkusShouldReturnCorrectReser
], $storeTransfer);

//Assert
$this->assertEquals(
$this->assertSame(
$reservationQuantity1->add($reservationQuantity2)->toInt(),
$reserved->toInt(),
'Calculated reserved amount does not match expected value.'
Expand Down

0 comments on commit c710f11

Please sign in to comment.