File tree Expand file tree Collapse file tree 6 files changed +20
-4
lines changed Expand file tree Collapse file tree 6 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ before_script:
2323 - composer install
2424
2525script :
26- - ./vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/phpunit. junit.xml
26+ - ./vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml
2727 - ./vendor/bin/infection --coverage=build --min-msi=60 -j$(nproc)
2828
2929after_success :
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
77## [ Unreleased]
88
9+ ## [ 4.0.1] - 2019-11-30
10+ ### Fixed
11+ - Encountered error: "You are not the owner of the wallet" #129 @arjayosma
12+
913## [ 4.0.0] - 2019-10-04
1014### Added
1115- Added interface ` Storeable ` for creating your own wallet balance repositories. #103
@@ -431,7 +435,8 @@ The operation is now executed in the transaction and updates the new `refund` fi
431435- Exceptions: AmountInvalid, BalanceIsEmpty.
432436- Models: Transfer, Transaction.
433437
434- [ Unreleased ] : https://github.com/bavix/laravel-wallet/compare/4.0.0...HEAD
438+ [ Unreleased ] : https://github.com/bavix/laravel-wallet/compare/4.0.1...HEAD
439+ [ 4.0.1 ] : https://github.com/bavix/laravel-wallet/compare/4.0.0...4.0.1
435440[ 4.0.0 ] : https://github.com/bavix/laravel-wallet/compare/3.3.0...4.0.0
436441[ 3.3.0 ] : https://github.com/bavix/laravel-wallet/compare/3.2.1...3.3.0
437442[ 3.2.1 ] : https://github.com/bavix/laravel-wallet/compare/3.2.0...3.2.1
Original file line number Diff line number Diff line change 3333 "ramsey/uuid" : " ^3.0"
3434 },
3535 "require-dev" : {
36- "infection/infection" : " ^0.14 " ,
37- "orchestra/testbench" : " ^4.2 " ,
36+ "infection/infection" : " ^0.15 " ,
37+ "orchestra/testbench" : " ^4.4 " ,
3838 "phpstan/phpstan" : " ^0.11" ,
3939 "phpunit/phpunit" : " ^8.4" ,
4040 "laravel/cashier" : " ^7.0|^8.0|^9.0|^10.0"
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class Transaction extends Model
4747 * @var array
4848 */
4949 protected $ casts = [
50+ 'wallet_id ' => 'int ' ,
5051 'amount ' => 'int ' ,
5152 'confirmed ' => 'bool ' ,
5253 'meta ' => 'json '
Original file line number Diff line number Diff line change @@ -50,6 +50,15 @@ class Transfer extends Model
5050 'fee ' ,
5151 ];
5252
53+ /**
54+ * @var array
55+ */
56+ protected $ casts = [
57+ 'deposit_id ' => 'int ' ,
58+ 'withdraw_id ' => 'int ' ,
59+ 'fee ' => 'int ' ,
60+ ];
61+
5362 /**
5463 * @return string
5564 */
Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ public function testArtisanRefresh(): void
213213 $ amount = \random_int (10 , 10000 );
214214 $ confirmed = (bool )\random_int (0 , 1 );
215215 $ deposit = $ wallet ->deposit ($ amount , null , $ confirmed );
216+ $ this ->assertIsInt ($ deposit ->wallet_id );
216217
217218 if ($ confirmed ) {
218219 $ sums [$ name ] += $ amount ;
You can’t perform that action at this time.
0 commit comments