@@ -44,6 +44,7 @@ public function testDeposit(): void
4444 public function testInvalidDeposit (): void
4545 {
4646 $ this ->expectException (AmountInvalid::class);
47+ $ this ->expectExceptionMessageStrict (trans ('wallet::errors.price_positive ' ));
4748 $ user = factory (User::class)->create ();
4849 $ user ->depositFloat (-1 );
4950 }
@@ -54,6 +55,7 @@ public function testInvalidDeposit(): void
5455 public function testWithdraw (): void
5556 {
5657 $ this ->expectException (BalanceIsEmpty::class);
58+ $ this ->expectExceptionMessageStrict (trans ('wallet::errors.wallet_empty ' ));
5759
5860 $ user = factory (User::class)->create ();
5961 $ this ->assertEquals ($ user ->balance , 0 );
@@ -79,6 +81,7 @@ public function testWithdraw(): void
7981 public function testInvalidWithdraw (): void
8082 {
8183 $ this ->expectException (BalanceIsEmpty::class);
84+ $ this ->expectExceptionMessageStrict (trans ('wallet::errors.wallet_empty ' ));
8285 $ user = factory (User::class)->create ();
8386 $ user ->withdrawFloat (-1 );
8487 }
@@ -156,6 +159,7 @@ public function testTransferYourself(): void
156159 public function testBalanceIsEmpty (): void
157160 {
158161 $ this ->expectException (BalanceIsEmpty::class);
162+ $ this ->expectExceptionMessageStrict (trans ('wallet::errors.wallet_empty ' ));
159163
160164 /**
161165 * @var User $user
0 commit comments