mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Merge pull request #15111 from marcusmoore/fixes/optimize-test
Undo `optimize` command in test after it is completed
This commit is contained in:
commit
1eb16cdb02
|
@ -2,13 +2,17 @@
|
||||||
|
|
||||||
namespace Tests\Feature\Console;
|
namespace Tests\Feature\Console;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Artisan;
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class OptimizeTest extends TestCase
|
class OptimizeTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testOptimizeSucceeds()
|
public function testOptimizeSucceeds()
|
||||||
{
|
{
|
||||||
|
$this->beforeApplicationDestroyed(function () {
|
||||||
|
$this->artisan('config:clear');
|
||||||
|
$this->artisan('route:clear');
|
||||||
|
});
|
||||||
|
|
||||||
$this->artisan('optimize')->assertSuccessful();
|
$this->artisan('optimize')->assertSuccessful();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue