Skip to content

Commit e2f1d01

Browse files
authored
[11.x] Test Improvements (#53414)
The following tests does not clean-up the generated `config.php` and `events.php` causing rerunning PHPUnit to failed due to loading configuration from cached Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 0be1995 commit e2f1d01

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Integration/Foundation/Console/OptimizeCommandTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@
55
use Illuminate\Foundation\Console\ClosureCommand;
66
use Illuminate\Support\ServiceProvider;
77
use Illuminate\Tests\Integration\Generators\TestCase;
8+
use Orchestra\Testbench\Concerns\InteractsWithPublishedFiles;
89

910
class OptimizeCommandTest extends TestCase
1011
{
12+
use InteractsWithPublishedFiles;
13+
14+
protected $files = [
15+
'bootstrap/cache/config.php',
16+
'bootstrap/cache/events.php',
17+
];
18+
1119
protected function getPackageProviders($app): array
1220
{
1321
return [ServiceProviderWithOptimize::class];

0 commit comments

Comments
 (0)