snipe-it/tests/Feature/Console/OptimizeTest.php

19 lines
369 B
PHP
Raw Normal View History

<?php
namespace Tests\Feature\Console;
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();
}
}