diff --git a/tests/Console/ModelsCommand/Factories/Test.php b/tests/Console/ModelsCommand/Factories/Test.php index 52c39ff..43d9c73 100644 --- a/tests/Console/ModelsCommand/Factories/Test.php +++ b/tests/Console/ModelsCommand/Factories/Test.php @@ -26,24 +26,6 @@ class Test extends AbstractModelsCommand $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); - $this->assertMatchesMockedSnapshot(); - } - - /** @test */ - public function it_doesnt_generate_phpdoc_for_model_doesnt_have_factory() - { - if (!version_compare(Application::VERSION, '8.2', '>=')) { - $this->markTestSkipped( - 'This test only works in Laravel >= 8.2' - ); - } - - $command = $this->app->make(ModelsCommand::class); - - $tester = $this->runCommand($command, [ - '--write' => true, - ]); - $this->assertStringNotContainsString('not found', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } diff --git a/tests/Console/ModelsCommand/Factories/__snapshots__/Test__it_doesnt_generate_phpdoc_for_model_doesnt_have_factory__1.php b/tests/Console/ModelsCommand/Factories/__snapshots__/Test__it_doesnt_generate_phpdoc_for_model_doesnt_have_factory__1.php deleted file mode 100644 index 4d8b0f8..0000000 --- a/tests/Console/ModelsCommand/Factories/__snapshots__/Test__it_doesnt_generate_phpdoc_for_model_doesnt_have_factory__1.php +++ /dev/null @@ -1,56 +0,0 @@ -