docker-itmgmt/speedtest/volumes/config/www/tests/Feature/Commands/ClearOldSessionCommandTest.php
2023-03-29 15:20:05 +00:00

25 lines
524 B
PHP

<?php
namespace Tests\Feature\Commands;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class ClearOldSessionCommandTest extends TestCase
{
use RefreshDatabase;
/**
* A basic feature test example.
*
* @return void
*/
public function testClearSessionsCommand()
{
$this->artisan('speedtest:clear-sessions')
->expectsOutput('Invalidated expired sessions')
->assertExitCode(0);
}
}