File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1414use Bavix \Wallet \Test \Infra \Models \Buyer ;
1515use Bavix \Wallet \Test \Infra \Models \ItemDiscount ;
1616use Bavix \Wallet \Test \Infra \TestCase ;
17+ use Bavix \Wallet \Test \Infra \PackageModels \Transaction as InfraTransaction ;
18+ use Bavix \Wallet \Test \Infra \PackageModels \Wallet as InfraWallet ;
1719
1820/**
1921 * @internal
@@ -239,7 +241,11 @@ public function testPayFree(): void
239241
240242 $ transfer = $ buyer ->payFree ($ product );
241243 self ::assertSame (Transaction::TYPE_DEPOSIT , $ transfer ->deposit ->type );
244+ self ::assertInstanceOf (InfraTransaction::class, $ transfer ->deposit );
245+ self ::assertInstanceOf (InfraWallet::class, $ transfer ->from );
242246 self ::assertSame (Transaction::TYPE_WITHDRAW , $ transfer ->withdraw ->type );
247+ self ::assertInstanceOf (InfraTransaction::class, $ transfer ->withdraw );
248+ self ::assertInstanceOf (InfraWallet::class, $ transfer ->to );
243249
244250 self ::assertSame (0 , $ buyer ->balanceInt );
245251 self ::assertSame (0 , $ product ->balanceInt );
You can’t perform that action at this time.
0 commit comments