From 7b39f9c114c713a7d75ceeb79b4f5efe3d4f682a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 24 Sep 2021 15:36:58 -0500 Subject: [PATCH] update namespace --- src/Console/InstallCommand.php | 6 ++++-- stubs/default/tests/Feature/AuthenticationTest.php | 2 +- stubs/default/tests/Feature/EmailVerificationTest.php | 2 +- stubs/default/tests/Feature/PasswordConfirmationTest.php | 2 +- stubs/default/tests/Feature/PasswordResetTest.php | 2 +- stubs/default/tests/Feature/RegistrationTest.php | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index b5d6ec36d..fc4c6c1a7 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -105,14 +105,16 @@ public function handle() */ protected function installTests() { + (new Filesystem)->ensureDirectoryExists(base_path('tests/Feature/Auth')); + if ($this->option('pest')) { $this->requireComposerPackages('pestphp/pest:^1.16', 'pestphp/pest-plugin-laravel:^1.1'); - (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/pest-tests/Feature', base_path('tests/Feature')); + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/pest-tests/Feature', base_path('tests/Feature/Auth')); (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/pest-tests/Unit', base_path('tests/Unit')); (new Filesystem)->copy(__DIR__.'/../../stubs/default/pest-tests/Pest.php', base_path('tests/Pest.php')); } else { - (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/tests/Feature', base_path('tests/Feature')); + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/tests/Feature', base_path('tests/Feature/Auth')); } } diff --git a/stubs/default/tests/Feature/AuthenticationTest.php b/stubs/default/tests/Feature/AuthenticationTest.php index 2dbceac2d..075a4c209 100644 --- a/stubs/default/tests/Feature/AuthenticationTest.php +++ b/stubs/default/tests/Feature/AuthenticationTest.php @@ -1,6 +1,6 @@