From 8418fac9906fff48f505864f31e21aae5b8db331 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Fri, 26 Aug 2022 15:37:27 +0500 Subject: [PATCH] move console classes to Console directory --- tests/Etc/{ => Console}/AddUserCommand.php | 3 ++- tests/Etc/{ => Console}/ConsoleKernel.php | 2 +- tests/Etc/{ => Console}/ExampleCommand.php | 2 +- tests/Etc/{ => Console}/ExampleQuestionCommand.php | 2 +- tests/TestCase.php | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) rename tests/Etc/{ => Console}/AddUserCommand.php (91%) rename tests/Etc/{ => Console}/ConsoleKernel.php (85%) rename tests/Etc/{ => Console}/ExampleCommand.php (94%) rename tests/Etc/{ => Console}/ExampleQuestionCommand.php (93%) diff --git a/tests/Etc/AddUserCommand.php b/tests/Etc/Console/AddUserCommand.php similarity index 91% rename from tests/Etc/AddUserCommand.php rename to tests/Etc/Console/AddUserCommand.php index 46e1fcbb..f102bae6 100644 --- a/tests/Etc/AddUserCommand.php +++ b/tests/Etc/Console/AddUserCommand.php @@ -2,12 +2,13 @@ declare(strict_types=1); -namespace Stancl\Tenancy\Tests\Etc; +namespace Stancl\Tenancy\Tests\Etc\Console; use Illuminate\Console\Command; use Illuminate\Support\Str; use Stancl\Tenancy\Concerns\HasATenantsOption; use Stancl\Tenancy\Concerns\TenantAwareCommand; +use Stancl\Tenancy\Tests\Etc\User; class AddUserCommand extends Command { diff --git a/tests/Etc/ConsoleKernel.php b/tests/Etc/Console/ConsoleKernel.php similarity index 85% rename from tests/Etc/ConsoleKernel.php rename to tests/Etc/Console/ConsoleKernel.php index 2dc8d87e..c5e5ee85 100644 --- a/tests/Etc/ConsoleKernel.php +++ b/tests/Etc/Console/ConsoleKernel.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Stancl\Tenancy\Tests\Etc; +namespace Stancl\Tenancy\Tests\Etc\Console; use Orchestra\Testbench\Foundation\Console\Kernel; diff --git a/tests/Etc/ExampleCommand.php b/tests/Etc/Console/ExampleCommand.php similarity index 94% rename from tests/Etc/ExampleCommand.php rename to tests/Etc/Console/ExampleCommand.php index 49e7189b..72263b37 100644 --- a/tests/Etc/ExampleCommand.php +++ b/tests/Etc/Console/ExampleCommand.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Stancl\Tenancy\Tests\Etc; +namespace Stancl\Tenancy\Tests\Etc\Console; use Illuminate\Console\Command; diff --git a/tests/Etc/ExampleQuestionCommand.php b/tests/Etc/Console/ExampleQuestionCommand.php similarity index 93% rename from tests/Etc/ExampleQuestionCommand.php rename to tests/Etc/Console/ExampleQuestionCommand.php index 36e5d2ed..87b3e834 100644 --- a/tests/Etc/ExampleQuestionCommand.php +++ b/tests/Etc/Console/ExampleQuestionCommand.php @@ -1,6 +1,6 @@ singleton('Illuminate\Contracts\Console\Kernel', Etc\ConsoleKernel::class); + $app->singleton('Illuminate\Contracts\Console\Kernel', Etc\Console\ConsoleKernel::class); } public function randomString(int $length = 10)