Skip to content

Commit

Permalink
update namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 24, 2021
1 parent 2d670b2 commit 7b39f9c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion stubs/default/tests/Feature/AuthenticationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Feature;
namespace Tests\Feature\Auth;

use App\Models\User;
use App\Providers\RouteServiceProvider;
Expand Down
2 changes: 1 addition & 1 deletion stubs/default/tests/Feature/EmailVerificationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Feature;
namespace Tests\Feature\Auth;

use App\Models\User;
use App\Providers\RouteServiceProvider;
Expand Down
2 changes: 1 addition & 1 deletion stubs/default/tests/Feature/PasswordConfirmationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Feature;
namespace Tests\Feature\Auth;

use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
Expand Down
2 changes: 1 addition & 1 deletion stubs/default/tests/Feature/PasswordResetTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Feature;
namespace Tests\Feature\Auth;

use App\Models\User;
use Illuminate\Auth\Notifications\ResetPassword;
Expand Down
2 changes: 1 addition & 1 deletion stubs/default/tests/Feature/RegistrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Feature;
namespace Tests\Feature\Auth;

use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Testing\RefreshDatabase;
Expand Down

0 comments on commit 7b39f9c

Please sign in to comment.