From ba0fbd71e6f33b2bcb5d91b9161a4dc871e1cbe3 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Wed, 13 Jan 2021 01:16:59 -0500 Subject: [PATCH] Move test infrastructure to Testing namespace in src directory --- .../testing/{tests => src}/integration/BuildsHttpRequests.php | 2 +- .../testing/{tests => src}/integration/ConsoleTestCase.php | 2 +- .../{tests => src}/integration/RetrievesAuthorizedUsers.php | 2 +- php-packages/testing/{tests => src}/integration/TestCase.php | 2 +- .../testing/{tests => src}/integration/UsesSettings.php | 2 +- php-packages/testing/{tests => src}/integration/setup.php | 0 .../{tests => src}/integration/tmp/public/assets/.gitkeep | 0 .../{tests => src}/integration/tmp/storage/formatter/.gitkeep | 0 .../{tests => src}/integration/tmp/storage/sessions/.gitkeep | 0 .../{tests => src}/integration/tmp/storage/views/.gitkeep | 0 .../integration/tmp/vendor/composer/installed.json | 0 php-packages/testing/{tests => src}/unit/TestCase.php | 2 +- 12 files changed, 6 insertions(+), 6 deletions(-) rename php-packages/testing/{tests => src}/integration/BuildsHttpRequests.php (98%) rename php-packages/testing/{tests => src}/integration/ConsoleTestCase.php (96%) rename php-packages/testing/{tests => src}/integration/RetrievesAuthorizedUsers.php (93%) rename php-packages/testing/{tests => src}/integration/TestCase.php (99%) rename php-packages/testing/{tests => src}/integration/UsesSettings.php (93%) rename php-packages/testing/{tests => src}/integration/setup.php (100%) rename php-packages/testing/{tests => src}/integration/tmp/public/assets/.gitkeep (100%) rename php-packages/testing/{tests => src}/integration/tmp/storage/formatter/.gitkeep (100%) rename php-packages/testing/{tests => src}/integration/tmp/storage/sessions/.gitkeep (100%) rename php-packages/testing/{tests => src}/integration/tmp/storage/views/.gitkeep (100%) rename php-packages/testing/{tests => src}/integration/tmp/vendor/composer/installed.json (100%) rename php-packages/testing/{tests => src}/unit/TestCase.php (92%) diff --git a/php-packages/testing/tests/integration/BuildsHttpRequests.php b/php-packages/testing/src/integration/BuildsHttpRequests.php similarity index 98% rename from php-packages/testing/tests/integration/BuildsHttpRequests.php rename to php-packages/testing/src/integration/BuildsHttpRequests.php index 410d67b56..111be7637 100644 --- a/php-packages/testing/tests/integration/BuildsHttpRequests.php +++ b/php-packages/testing/src/integration/BuildsHttpRequests.php @@ -7,7 +7,7 @@ * LICENSE file that was distributed with this source code. */ -namespace Flarum\Tests\integration; +namespace Flarum\Testing\integration; use Carbon\Carbon; use Dflydev\FigCookies\SetCookie; diff --git a/php-packages/testing/tests/integration/ConsoleTestCase.php b/php-packages/testing/src/integration/ConsoleTestCase.php similarity index 96% rename from php-packages/testing/tests/integration/ConsoleTestCase.php rename to php-packages/testing/src/integration/ConsoleTestCase.php index 80d907a2e..a29db0895 100644 --- a/php-packages/testing/tests/integration/ConsoleTestCase.php +++ b/php-packages/testing/src/integration/ConsoleTestCase.php @@ -7,7 +7,7 @@ * LICENSE file that was distributed with this source code. */ -namespace Flarum\Tests\integration; +namespace Flarum\Testing\integration; use Flarum\Foundation\Application; use Symfony\Component\Console\Application as ConsoleApplication; diff --git a/php-packages/testing/tests/integration/RetrievesAuthorizedUsers.php b/php-packages/testing/src/integration/RetrievesAuthorizedUsers.php similarity index 93% rename from php-packages/testing/tests/integration/RetrievesAuthorizedUsers.php rename to php-packages/testing/src/integration/RetrievesAuthorizedUsers.php index a4bd58a98..8eefc75f6 100644 --- a/php-packages/testing/tests/integration/RetrievesAuthorizedUsers.php +++ b/php-packages/testing/src/integration/RetrievesAuthorizedUsers.php @@ -7,7 +7,7 @@ * LICENSE file that was distributed with this source code. */ -namespace Flarum\Tests\integration; +namespace Flarum\Testing\integration; trait RetrievesAuthorizedUsers { diff --git a/php-packages/testing/tests/integration/TestCase.php b/php-packages/testing/src/integration/TestCase.php similarity index 99% rename from php-packages/testing/tests/integration/TestCase.php rename to php-packages/testing/src/integration/TestCase.php index 1bf515a41..60fb2b38b 100644 --- a/php-packages/testing/tests/integration/TestCase.php +++ b/php-packages/testing/src/integration/TestCase.php @@ -7,7 +7,7 @@ * LICENSE file that was distributed with this source code. */ -namespace Flarum\Tests\integration; +namespace Flarum\Testing\integration; use Flarum\Extend\ExtenderInterface; use Flarum\Foundation\Config; diff --git a/php-packages/testing/tests/integration/UsesSettings.php b/php-packages/testing/src/integration/UsesSettings.php similarity index 93% rename from php-packages/testing/tests/integration/UsesSettings.php rename to php-packages/testing/src/integration/UsesSettings.php index d37aa0f7b..66b49cf9e 100644 --- a/php-packages/testing/tests/integration/UsesSettings.php +++ b/php-packages/testing/src/integration/UsesSettings.php @@ -7,7 +7,7 @@ * LICENSE file that was distributed with this source code. */ -namespace Flarum\Tests\integration; +namespace Flarum\Testing\integration; use Flarum\Settings\SettingsRepositoryInterface; diff --git a/php-packages/testing/tests/integration/setup.php b/php-packages/testing/src/integration/setup.php similarity index 100% rename from php-packages/testing/tests/integration/setup.php rename to php-packages/testing/src/integration/setup.php diff --git a/php-packages/testing/tests/integration/tmp/public/assets/.gitkeep b/php-packages/testing/src/integration/tmp/public/assets/.gitkeep similarity index 100% rename from php-packages/testing/tests/integration/tmp/public/assets/.gitkeep rename to php-packages/testing/src/integration/tmp/public/assets/.gitkeep diff --git a/php-packages/testing/tests/integration/tmp/storage/formatter/.gitkeep b/php-packages/testing/src/integration/tmp/storage/formatter/.gitkeep similarity index 100% rename from php-packages/testing/tests/integration/tmp/storage/formatter/.gitkeep rename to php-packages/testing/src/integration/tmp/storage/formatter/.gitkeep diff --git a/php-packages/testing/tests/integration/tmp/storage/sessions/.gitkeep b/php-packages/testing/src/integration/tmp/storage/sessions/.gitkeep similarity index 100% rename from php-packages/testing/tests/integration/tmp/storage/sessions/.gitkeep rename to php-packages/testing/src/integration/tmp/storage/sessions/.gitkeep diff --git a/php-packages/testing/tests/integration/tmp/storage/views/.gitkeep b/php-packages/testing/src/integration/tmp/storage/views/.gitkeep similarity index 100% rename from php-packages/testing/tests/integration/tmp/storage/views/.gitkeep rename to php-packages/testing/src/integration/tmp/storage/views/.gitkeep diff --git a/php-packages/testing/tests/integration/tmp/vendor/composer/installed.json b/php-packages/testing/src/integration/tmp/vendor/composer/installed.json similarity index 100% rename from php-packages/testing/tests/integration/tmp/vendor/composer/installed.json rename to php-packages/testing/src/integration/tmp/vendor/composer/installed.json diff --git a/php-packages/testing/tests/unit/TestCase.php b/php-packages/testing/src/unit/TestCase.php similarity index 92% rename from php-packages/testing/tests/unit/TestCase.php rename to php-packages/testing/src/unit/TestCase.php index 63214ce19..ae04b4cac 100644 --- a/php-packages/testing/tests/unit/TestCase.php +++ b/php-packages/testing/src/unit/TestCase.php @@ -7,7 +7,7 @@ * LICENSE file that was distributed with this source code. */ -namespace Flarum\Tests\unit; +namespace Flarum\Testing\unit; use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;