File tree Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ matrix:
1717 env : ILLUMINATE_VERSION=5.7.* TESTBENCH_VERSION=3.7.*
1818 - php : 7.2
1919 env : ILLUMINATE_VERSION=5.6.* TESTBENCH_VERSION=3.6.*
20+ - php : 7.3
21+ env : ILLUMINATE_VERSION=7.* TESTBENCH_VERSION=5.*
2022 - php : 7.3
2123 env : ILLUMINATE_VERSION=6.* TESTBENCH_VERSION=4.*
2224 - php : 7.3
@@ -25,6 +27,8 @@ matrix:
2527 env : ILLUMINATE_VERSION=5.7.* TESTBENCH_VERSION=3.7.*
2628 - php : 7.3
2729 env : ILLUMINATE_VERSION=5.6.* TESTBENCH_VERSION=3.6.*
30+ - php : 7.4
31+ env : ILLUMINATE_VERSION=7.* TESTBENCH_VERSION=5.*
2832 - php : 7.4
2933 env : ILLUMINATE_VERSION=6.* TESTBENCH_VERSION=4.*
3034 - php : 7.4
Original file line number Diff line number Diff line change 2323 "php" : " ^7.1" ,
2424 "0.0.0/composer-include-files" : " ^1.5" ,
2525 "codezero/laravel-localizer" : " ^1.1" ,
26- "illuminate/support" : " ^5.6|^6.0"
26+ "illuminate/support" : " ^5.6|^6.0|^7.0 "
2727 },
2828 "require-dev" : {
2929 "mockery/mockery" : " ^1.3" ,
30- "orchestra/testbench" : " ^3.6|^4.0" ,
31- "phpunit/phpunit" : " ^7.0|^8.0"
30+ "orchestra/testbench" : " ^3.6|^4.0|^5.0 " ,
31+ "phpunit/phpunit" : " ^7.0|^8.0|^9.0 "
3232 },
3333 "scripts" : {
3434 "test" : " phpunit"
Original file line number Diff line number Diff line change @@ -35,10 +35,11 @@ public function getSlug($locale = null)
3535 * Fake route model binding.
3636 *
3737 * @param string $parameter
38+ * @param string|null $field
3839 *
3940 * @return mixed
4041 */
41- public function resolveRouteBinding ($ parameter )
42+ public function resolveRouteBinding ($ parameter, $ field = null )
4243 {
4344 // Bypass the database for testing purpose and return
4445 // the current model as if it was found in the database.
Original file line number Diff line number Diff line change @@ -29,10 +29,11 @@ public function getRouteParameters($locale = null)
2929 * Fake route model binding (avoid database for test purpose).
3030 *
3131 * @param int $id
32+ * @param string|null $field
3233 *
3334 * @return mixed
3435 */
35- public function resolveRouteBinding ($ id )
36+ public function resolveRouteBinding ($ id, $ field = null )
3637 {
3738 return $ this ;
3839 }
Original file line number Diff line number Diff line change 55use CodeZero \LocalizedRoutes \LocalizedRoutesServiceProvider ;
66use CodeZero \Localizer \LocalizerServiceProvider ;
77use Illuminate \Contracts \View \View ;
8- use Illuminate \Foundation \Testing \Assert as PHPUnit ;
9- use Illuminate \Foundation \Testing \TestResponse ;
108use Illuminate \Support \Collection ;
119use Illuminate \Support \Facades \App ;
1210use Illuminate \Support \Facades \Config ;
1311use Illuminate \Support \Facades \Lang ;
1412use Illuminate \Support \Facades \Route ;
13+ use Illuminate \Testing \Assert as PHPUnit ;
14+ use Illuminate \Testing \TestResponse ;
1515use Orchestra \Testbench \TestCase as BaseTestCase ;
1616
1717abstract class TestCase extends BaseTestCase
@@ -27,7 +27,7 @@ protected function setUp(): void
2727
2828 TestResponse::macro ('assertResponseHasNoView ' , function () {
2929 if (isset ($ this ->original ) && $ this ->original instanceof View) {
30- return PHPUnit::fail ('The response has a view. ' );
30+ PHPUnit::fail ('The response has a view. ' );
3131 }
3232
3333 return $ this ;
You can’t perform that action at this time.
0 commit comments