Skip to content

Commit 1770103

Browse files
committed
patch unit
1 parent 8b20340 commit 1770103

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ProductTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ public function testPayFree(): void
184184

185185
$this->assertEquals($buyer->balance, 0);
186186

187-
$buyer->payFree($product);
187+
$transfer = $buyer->payFree($product);
188+
$this->assertEquals($transfer->deposit->type, Transaction::TYPE_DEPOSIT);
189+
$this->assertEquals($transfer->withdraw->type, Transaction::TYPE_WITHDRAW);
190+
188191
$this->assertEquals($buyer->balance, 0);
189192
$this->assertEquals($product->balance, 0);
190193

0 commit comments

Comments
 (0)