File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,20 @@ language: php
2
2
dist : trusty
3
3
sudo : false
4
4
5
- env :
6
- global :
7
- - PHPUNIT_VERSION=^8.0
8
-
9
5
matrix :
10
6
include :
11
7
- php : " 7.2"
12
8
env :
13
9
- LARAVEL_VERSION=^7.0
10
+ - PHPUNIT_VERSION=^8.0
14
11
- php : " 7.3"
15
12
env :
16
13
- LARAVEL_VERSION=^7.0
14
+ - PHPUNIT_VERSION=^9.0
17
15
- php : " 7.4"
18
16
env :
19
17
- LARAVEL_VERSION=^7.0
18
+ - PHPUNIT_VERSION=^9.0
20
19
21
20
install :
22
21
- composer require "laravel/framework:${LARAVEL_VERSION}" --no-update -n
Original file line number Diff line number Diff line change 38
38
},
39
39
"require-dev" : {
40
40
"ext-sqlite3" : " *" ,
41
- "cloudcreativity/json-api-testing" : " ^2.1 " ,
41
+ "cloudcreativity/json-api-testing" : " ^3.0 " ,
42
42
"guzzlehttp/guzzle" : " ^6.3" ,
43
43
"laravel/ui" : " ^2.0" ,
44
44
"mockery/mockery" : " ^1.1" ,
45
45
"orchestra/testbench" : " ^5.0" ,
46
- "phpunit/phpunit" : " ^8 .0"
46
+ "phpunit/phpunit" : " ^9 .0"
47
47
},
48
48
"suggest" : {
49
49
"cloudcreativity/json-api-testing" : " Required to use the test helpers."
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Install using [Composer](http://getcomposer.org):
4
4
5
5
``` bash
6
6
$ composer require cloudcreativity/laravel-json-api
7
- $ composer require --dev " cloudcreativity/json-api-testing:^1.2|^2.0 "
7
+ $ composer require --dev " cloudcreativity/json-api-testing"
8
8
```
9
9
10
10
This package's service provider and facade will be automatically added using package discovery. You will
@@ -16,7 +16,7 @@ Please find a compatibility matrix between Laravel and Laravel JSON API version
16
16
## Route Prefixes
17
17
18
18
The default Laravel installation has an ` api ` prefix for API routes. If you want to register your JSON API
19
- routes in your ` routes/api.php ` file, you will need to remove the prefix from the ` mapApiRoutes() ` method in your
19
+ routes in your ` routes/api.php ` file, you will need to remove the prefix from the ` mapApiRoutes() ` method in your
20
20
` RouteServiceProvider ` .
21
21
22
22
For example, change this:
@@ -102,7 +102,7 @@ class Handler extends ExceptionHandler
102
102
103
103
// do standard exception rendering here...
104
104
}
105
-
105
+
106
106
protected function prepareException(Exception $e)
107
107
{
108
108
if ($e instanceof JsonApiException) {
You can’t perform that action at this time.
0 commit comments