mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Clear the config and route caching done by optimize command after test
This commit is contained in:
parent
239824681d
commit
a56f3f85f8
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue