File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public function testSimple(): void
2828 self ::assertSame (0 , $ wallet ->balanceInt );
2929
3030 $ transaction = $ wallet ->deposit (1000 , ['desc ' => 'unconfirmed ' ], false );
31+ self ::assertTrue ($ transaction ->getKey () > 0 );
3132 self ::assertSame (0 , $ wallet ->balanceInt );
3233 self ::assertFalse ($ transaction ->confirmed );
3334
@@ -47,6 +48,7 @@ public function testSafe(): void
4748 $ transaction = $ wallet ->forceWithdraw (1000 , ['desc ' => 'unconfirmed ' ], false );
4849 self ::assertSame (0 , $ wallet ->balanceInt );
4950 self ::assertFalse ($ transaction ->confirmed );
51+ self ::assertTrue ($ transaction ->getKey () > 0 );
5052
5153 $ wallet ->safeConfirm ($ transaction );
5254 self ::assertSame (0 , $ wallet ->balanceInt );
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public function testCustomAttribute(): void
3030 self ::assertFalse ($ buyer ->relationLoaded ('wallet ' ));
3131 $ transaction = $ buyer ->deposit (1000 , ['bank_method ' => 'VietComBank ' ]);
3232
33+ self ::assertTrue ($ transaction ->getKey () > 0 );
3334 self ::assertSame ($ transaction ->amountInt , $ buyer ->balanceInt );
3435 self ::assertInstanceOf (Transaction::class, $ transaction );
3536 self ::assertSame ('VietComBank ' , $ transaction ->bank_method );
@@ -47,6 +48,7 @@ public function testTransactionMoneyAttribute(): void
4748 self ::assertFalse ($ buyer ->relationLoaded ('wallet ' ));
4849 $ transaction = $ buyer ->deposit (1000 , ['currency ' => 'EUR ' ]);
4950
51+ self ::assertTrue ($ transaction ->getKey () > 0 );
5052 self ::assertSame ($ transaction ->amountInt , $ buyer ->balanceInt );
5153 self ::assertInstanceOf (TransactionMoney::class, $ transaction );
5254 self ::assertSame ('1000 ' , $ transaction ->currency ->getAmount ());
You can’t perform that action at this time.
0 commit comments