Skip to content

Commit d68fefe

Browse files
authored
[9.x] Test Improvements (#46658)
* Test Improvements Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update composer.json --------- Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 775eb8a commit d68fefe

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"league/flysystem-read-only": "^3.3",
102102
"league/flysystem-sftp-v3": "^3.0",
103103
"mockery/mockery": "^1.5.1",
104-
"orchestra/testbench-core": "^7.16",
104+
"orchestra/testbench-core": "^7.24",
105105
"pda/pheanstalk": "^4.0",
106106
"phpstan/phpdoc-parser": "^1.15",
107107
"phpstan/phpstan": "^1.4.7",

tests/Integration/Routing/ImplicitBackedEnumRouteBindingTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
*/
1515
class ImplicitBackedEnumRouteBindingTest extends TestCase
1616
{
17+
protected function defineEnvironment($app): void
18+
{
19+
$app['config']->set(['app.key' => 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF']);
20+
}
21+
1722
public function testWithRouteCachingEnabled()
1823
{
1924
$this->defineCacheRoutes(<<<PHP

tests/Integration/Routing/ImplicitModelRouteBindingTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ protected function tearDown(): void
2727
parent::tearDown();
2828
}
2929

30+
protected function defineEnvironment($app): void
31+
{
32+
$app['config']->set(['app.key' => 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF']);
33+
}
34+
3035
protected function defineDatabaseMigrations(): void
3136
{
3237
Schema::create('users', function (Blueprint $table) {

tests/Integration/Routing/UrlSigningTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ protected function tearDown(): void
2121
Carbon::setTestNow(null);
2222
}
2323

24+
protected function defineEnvironment($app): void
25+
{
26+
$app['config']->set(['app.key' => 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF']);
27+
}
28+
2429
public function testSigningUrl()
2530
{
2631
Route::get('/foo/{id}', function (Request $request, $id) {

tests/Testing/AssertRedirectToSignedRouteTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ protected function setUp(): void
3737
$this->urlGenerator = $this->app->make(UrlGenerator::class);
3838
}
3939

40+
protected function defineEnvironment($app): void
41+
{
42+
$app['config']->set(['app.key' => 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF']);
43+
}
44+
4045
public function testAssertRedirectToSignedRouteWithoutRouteName()
4146
{
4247
$this->router->get('test-route', function () {

0 commit comments

Comments
 (0)