<?php

namespace Tests\Feature\Console;

use Tests\TestCase;

class OptimizeTest extends TestCase
{
    public function test_optimize_succeeds()
    {
        $this->beforeApplicationDestroyed(function () {
            $this->artisan('config:clear');
            $this->artisan('route:clear');
            $this->artisan('view:clear');
        });

        $this->artisan('optimize')->assertSuccessful();
    }
}
