Merge pull request #15111 from marcusmoore/fixes/optimize-test

Undo `optimize` command in test after it is completed
This commit is contained in:
snipe 2024-07-17 21:03:01 +01:00 committed by GitHub
commit 1eb16cdb02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,13 +2,17 @@
namespace Tests\Feature\Console;
use Illuminate\Support\Facades\Artisan;
use Tests\TestCase;
class OptimizeTest extends TestCase
{
public function testOptimizeSucceeds()
{
$this->beforeApplicationDestroyed(function () {
$this->artisan('config:clear');
$this->artisan('route:clear');
});
$this->artisan('optimize')->assertSuccessful();
}
}