diff --git a/tests/Console/ModelsCommand/CustomPhpdocTags/Models/Simple.php b/tests/Console/ModelsCommand/CustomPhpdocTags/Models/Simple.php new file mode 100644 index 000000000..368ad1cc3 --- /dev/null +++ b/tests/Console/ModelsCommand/CustomPhpdocTags/Models/Simple.php @@ -0,0 +1,19 @@ +app->make(ModelsCommand::class); + + $tester = $this->runCommand($command, [ + '--write' => true, + ]); + + $this->assertSame(0, $tester->getStatusCode()); + $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); + $this->assertMatchesMockedSnapshot(); + } +} diff --git a/tests/Console/ModelsCommand/CustomPhpdocTags/__snapshots__/Test__testNoSpaceAfterCustomPhpdocTag__1.php b/tests/Console/ModelsCommand/CustomPhpdocTags/__snapshots__/Test__testNoSpaceAfterCustomPhpdocTag__1.php new file mode 100644 index 000000000..9d9fb49f7 --- /dev/null +++ b/tests/Console/ModelsCommand/CustomPhpdocTags/__snapshots__/Test__testNoSpaceAfterCustomPhpdocTag__1.php @@ -0,0 +1,24 @@ +