diff --git a/src/Workbench.php b/src/Workbench.php index 0eb5810..aeba4e9 100644 --- a/src/Workbench.php +++ b/src/Workbench.php @@ -21,6 +21,8 @@ class Workbench extends \Orchestra\Testbench\Workbench\Workbench /** * Get the path to the application (Laravel) folder. + * + * @no-named-arguments */ public static function applicationPath(array|string $path = ''): string { @@ -32,6 +34,8 @@ public static function applicationPath(array|string $path = ''): string /** * Get the path to the Laravel application skeleton. * + * @no-named-arguments + * * @see \Orchestra\Workbench\Workbench::applicationPath() */ public static function laravelPath(array|string $path = ''): string @@ -41,6 +45,8 @@ public static function laravelPath(array|string $path = ''): string /** * Get the path to the package folder. + * + * @no-named-arguments */ public static function packagePath(array|string $path = ''): string { @@ -51,6 +57,8 @@ public static function packagePath(array|string $path = ''): string /** * Get the path to the workbench folder. + * + * @no-named-arguments */ public static function path(array|string $path = ''): string { diff --git a/tests/Console/CommandTestCase.php b/tests/Console/CommandTestCase.php index a086569..63a15b0 100644 --- a/tests/Console/CommandTestCase.php +++ b/tests/Console/CommandTestCase.php @@ -55,8 +55,10 @@ protected function assertCommandExecutedWithDevTool(bool $prefix = true): void { $workingPath = static::stubWorkingPath(); + $this->assertDirectoryExists(join_paths($workingPath, 'workbench', 'app')); $this->assertDirectoryExists(join_paths($workingPath, 'workbench', 'app', 'Models')); $this->assertDirectoryExists(join_paths($workingPath, 'workbench', 'app', 'Providers')); + $this->assertDirectoryExists(join_paths($workingPath, 'workbench', 'database')); $this->assertDirectoryExists(join_paths($workingPath, 'workbench', 'database', 'factories')); $this->assertDirectoryExists(join_paths($workingPath, 'workbench', 'database', 'seeders')); @@ -93,7 +95,11 @@ protected function assertCommandExecutedWithoutDevTool(bool $prefix = true): voi $workingPath = static::stubWorkingPath(); $this->assertDirectoryDoesNotExist(join_paths($workingPath, 'workbench', 'app')); + $this->assertDirectoryDoesNotExist(join_paths($workingPath, 'workbench', 'app', 'Models')); + $this->assertDirectoryDoesNotExist(join_paths($workingPath, 'workbench', 'app', 'Providers')); $this->assertDirectoryDoesNotExist(join_paths($workingPath, 'workbench', 'database')); + $this->assertDirectoryDoesNotExist(join_paths($workingPath, 'workbench', 'database', 'factories')); + $this->assertDirectoryDoesNotExist(join_paths($workingPath, 'workbench', 'database', 'seeders')); } /**