We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b20340 commit 1770103Copy full SHA for 1770103
tests/ProductTest.php
@@ -184,7 +184,10 @@ public function testPayFree(): void
184
185
$this->assertEquals($buyer->balance, 0);
186
187
- $buyer->payFree($product);
+ $transfer = $buyer->payFree($product);
188
+ $this->assertEquals($transfer->deposit->type, Transaction::TYPE_DEPOSIT);
189
+ $this->assertEquals($transfer->withdraw->type, Transaction::TYPE_WITHDRAW);
190
+
191
192
$this->assertEquals($product->balance, 0);
193
0 commit comments