Skip to content

Commit

Permalink
fix phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed May 12, 2019
1 parent 234ae3b commit e07a438
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/TaxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function testPay(): void
'quantity' => 1,
]);

$balance = (int) ($product->price +
$product->price * $product->getFeePercent() / 100);
$fee = (int) ($product->price * $product->getFeePercent() / 100);
$balance = $product->price + $fee;

$this->assertEquals($buyer->balance, 0);
$buyer->deposit($balance);
Expand All @@ -43,6 +43,7 @@ public function testPay(): void
$this->assertEquals($withdraw->amount, -$balance);
$this->assertEquals($deposit->amount, $product->getAmountProduct());
$this->assertNotEquals($deposit->amount, $withdraw->amount);
$this->assertEquals($transfer->fee, $fee);

$buyer->refund($product);
$this->assertEquals($buyer->balance, $deposit->amount);
Expand Down

0 comments on commit e07a438

Please sign in to comment.