Skip to content

A free open source IT asset/license management system

Apply the optimize fix

snipe670021a4827f
diff --git a/tests/Feature/Console/OptimizeTest.php b/tests/Feature/Console/OptimizeTest.php
index 93db05627a..0b4dbc19ac 100644
--- a/tests/Feature/Console/OptimizeTest.php
+++ b/tests/Feature/Console/OptimizeTest.php
@@ -9,6 +9,12 @@ class OptimizeTest extends TestCase
{
public function testOptimizeSucceeds()
{
+
+ $this->beforeApplicationDestroyed(function () {
+ $this->artisan('config:clear');
+ $this->artisan('route:clear');
+ });
+
$this->artisan('optimize')->assertSuccessful();
}
}