From f4b955cfe0ce525490fc32d43f6120898b8cd49d Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Wed, 5 Oct 2022 11:01:50 +0100 Subject: [PATCH] Issue #3260227 by mondrake: Move driver specific database Unit tests to their modules --- .../mysql => modules/mysql/tests/src/Unit}/ConnectionTest.php | 2 +- .../mysql/tests/src/Unit/InstallTasksTest.php} | 4 ++-- .../pgsql/tests/src/Unit/SchemaTest.php} | 4 ++-- .../sqlite/tests/src/Unit}/ConnectionTest.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename core/{tests/Drupal/Tests/Core/Database/Driver/mysql => modules/mysql/tests/src/Unit}/ConnectionTest.php (98%) rename core/{tests/Drupal/Tests/Core/Database/Driver/mysql/install/TasksTest.php => modules/mysql/tests/src/Unit/InstallTasksTest.php} (96%) rename core/{tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlSchemaTest.php => modules/pgsql/tests/src/Unit/SchemaTest.php} (95%) rename core/{tests/Drupal/Tests/Core/Database/Driver/sqlite => modules/sqlite/tests/src/Unit}/ConnectionTest.php (96%) diff --git a/core/tests/Drupal/Tests/Core/Database/Driver/mysql/ConnectionTest.php b/core/modules/mysql/tests/src/Unit/ConnectionTest.php similarity index 98% rename from core/tests/Drupal/Tests/Core/Database/Driver/mysql/ConnectionTest.php rename to core/modules/mysql/tests/src/Unit/ConnectionTest.php index fcfd6b08860e..878d7672ada4 100644 --- a/core/tests/Drupal/Tests/Core/Database/Driver/mysql/ConnectionTest.php +++ b/core/modules/mysql/tests/src/Unit/ConnectionTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\Core\Database\Driver\mysql; +namespace Drupal\Tests\mysql\Unit; use Drupal\mysql\Driver\Database\mysql\Connection; use Drupal\Tests\UnitTestCase; diff --git a/core/tests/Drupal/Tests/Core/Database/Driver/mysql/install/TasksTest.php b/core/modules/mysql/tests/src/Unit/InstallTasksTest.php similarity index 96% rename from core/tests/Drupal/Tests/Core/Database/Driver/mysql/install/TasksTest.php rename to core/modules/mysql/tests/src/Unit/InstallTasksTest.php index b8b6915aea2d..f0cb3c88bfd2 100644 --- a/core/tests/Drupal/Tests/Core/Database/Driver/mysql/install/TasksTest.php +++ b/core/modules/mysql/tests/src/Unit/InstallTasksTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\Core\Database\Driver\mysql\install; +namespace Drupal\Tests\mysql\Unit; use Drupal\mysql\Driver\Database\mysql\Connection; use Drupal\mysql\Driver\Database\mysql\Install\Tasks; @@ -12,7 +12,7 @@ * @coversDefaultClass \Drupal\mysql\Driver\Database\mysql\Install\Tasks * @group Database */ -class TasksTest extends UnitTestCase { +class InstallTasksTest extends UnitTestCase { /** * A connection object prophecy. diff --git a/core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlSchemaTest.php b/core/modules/pgsql/tests/src/Unit/SchemaTest.php similarity index 95% rename from core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlSchemaTest.php rename to core/modules/pgsql/tests/src/Unit/SchemaTest.php index 0e50eb18408b..7673638143b2 100644 --- a/core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlSchemaTest.php +++ b/core/modules/pgsql/tests/src/Unit/SchemaTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\Core\Database\Driver\pgsql; +namespace Drupal\Tests\pgsql\Unit; use Drupal\pgsql\Driver\Database\pgsql\Schema; use Drupal\Tests\UnitTestCase; @@ -11,7 +11,7 @@ * @coversDefaultClass \Drupal\pgsql\Driver\Database\pgsql\Schema * @group Database */ -class PostgresqlSchemaTest extends UnitTestCase { +class SchemaTest extends UnitTestCase { /** * The PostgreSql DB connection. diff --git a/core/tests/Drupal/Tests/Core/Database/Driver/sqlite/ConnectionTest.php b/core/modules/sqlite/tests/src/Unit/ConnectionTest.php similarity index 96% rename from core/tests/Drupal/Tests/Core/Database/Driver/sqlite/ConnectionTest.php rename to core/modules/sqlite/tests/src/Unit/ConnectionTest.php index 3e52d6aecca8..1555d83f112e 100644 --- a/core/tests/Drupal/Tests/Core/Database/Driver/sqlite/ConnectionTest.php +++ b/core/modules/sqlite/tests/src/Unit/ConnectionTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\Core\Database\Driver\sqlite; +namespace Drupal\Tests\sqlite\Unit; use Drupal\sqlite\Driver\Database\sqlite\Connection; use Drupal\Tests\Core\Database\Stub\StubPDO; -- GitLab