Skip to content

Commit ed29630

Browse files
committed
update case
1 parent d0371a2 commit ed29630

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/MultiWalletGiftTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Bavix\Wallet\Test;
44

55
use Bavix\Wallet\Models\Transfer;
6+
use Bavix\Wallet\Models\Wallet;
67
use Bavix\Wallet\Test\Models\Item;
78
use Bavix\Wallet\Test\Models\UserMulti;
89

@@ -46,6 +47,12 @@ public function testGiftWalletToUser(): void
4647
$this->assertEquals($second->balance, 2);
4748
$this->assertEquals($transfer->status, Transfer::STATUS_GIFT);
4849

50+
$this->assertEquals($transfer->withdraw->wallet->holder->id, $first->id);
51+
$this->assertInstanceOf(UserMulti::class, $transfer->withdraw->wallet->holder);
52+
53+
$this->assertEquals($wallet->id, $transfer->withdraw->wallet->id);
54+
$this->assertInstanceOf(Wallet::class, $transfer->withdraw->wallet);
55+
4956
$this->assertEquals($second->id, $transfer->from->holder_id);
5057
$this->assertInstanceOf(UserMulti::class, $transfer->from->holder);
5158

0 commit comments

Comments
 (0)