File tree Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 2424 "require-dev" : {
2525 "laravel/pint" : " ^1.14" ,
2626 "nunomaduro/collision" : " ^8.8" ,
27- "orchestra/testbench" : " ^10.0.0||^9.0.0 " ,
28- "pestphp/pest" : " ^4 .0" ,
29- "pestphp/pest-plugin-arch" : " ^4 .0" ,
30- "pestphp/pest-plugin-laravel" : " ^4 .0"
27+ "orchestra/testbench" : " ^10.0" ,
28+ "pestphp/pest" : " ^3 .0" ,
29+ "pestphp/pest-plugin-arch" : " ^3 .0" ,
30+ "pestphp/pest-plugin-laravel" : " ^3 .0"
3131 },
3232 "autoload" : {
3333 "psr-4" : {
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<phpunit
33 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.3 /phpunit.xsd"
4+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/11.5 /phpunit.xsd"
55 backupGlobals =" false"
66 bootstrap =" vendor/autoload.php"
77 colors =" true"
88 processIsolation =" false"
99 stopOnFailure =" false"
1010 executionOrder =" random"
1111 failOnWarning =" true"
12- failOnRisky =" true "
12+ failOnRisky =" false "
1313 failOnEmptyTestSuite =" true"
1414 beStrictAboutOutputDuringTests =" true"
1515 cacheDirectory =" .phpunit.cache"
Original file line number Diff line number Diff line change 66uses (TestCase::class)->in (__DIR__ );
77
88uses ()
9- ->beforeEach (fn () => MockClient::destroyGlobal ())
9+ ->beforeEach (function () {
10+ MockClient::destroyGlobal ();
11+ })
1012 ->in (__DIR__ );
Original file line number Diff line number Diff line change @@ -34,4 +34,11 @@ public function getEnvironmentSetUp($app)
3434 }
3535 */
3636 }
37+
38+ protected function defineEnvironment ($ app )
39+ {
40+ // Configure the application environment for testing
41+ $ app ['config ' ]->set ('app.debug ' , true );
42+ $ app ['config ' ]->set ('app.env ' , 'testing ' );
43+ }
3744}
You can’t perform that action at this time.
0 commit comments