File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 33namespace Bavix \Wallet \Test ;
44
55use Bavix \Wallet \Models \Transfer ;
6+ use Bavix \Wallet \Models \Wallet ;
67use Bavix \Wallet \Test \Models \Item ;
78use 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
You can’t perform that action at this time.
0 commit comments