diff --git a/tests/Console/PleaseTest.php b/tests/Console/PleaseTest.php index 7d4a578b55..c62bcbb949 100644 --- a/tests/Console/PleaseTest.php +++ b/tests/Console/PleaseTest.php @@ -4,7 +4,6 @@ use PHPUnit\Framework\Attributes\Test; use Statamic\Console\Please\Kernel; -use Statamic\Facades\StaticCache; use Symfony\Component\Console\Exception\CommandNotFoundException; use Tests\TestCase; @@ -20,30 +19,26 @@ public function setUp(): void #[Test] public function it_can_run_an_artisan_command_with_statamic_prefix() { - StaticCache::shouldReceive('flush')->once(); - $this->artisan('statamic:static:clear'); + $this->artisan('statamic:flat:camp'); } #[Test] public function statamic_prefixed_commands_will_throw_exception_when_running_in_artisan_without_prefix() { - StaticCache::shouldReceive('flush')->never(); $this->expectException(CommandNotFoundException::class); - $this->artisan('static:clear'); + $this->artisan('flat:camp'); } #[Test] public function it_can_run_a_please_command_without_statamic_prefix() { - StaticCache::shouldReceive('flush')->once(); - $this->please('static:clear'); + $this->please('flat:camp'); } #[Test] public function it_can_run_a_please_command_with_statamic_prefix() { - StaticCache::shouldReceive('flush')->once(); - $this->please('statamic:static:clear'); + $this->please('statamic:flat:camp'); } public function please($command, $parameters = [])