From 662ec3074d596ebaa3a331d2723cf8ee2acac27c Mon Sep 17 00:00:00 2001 From: bwaidelich Date: Tue, 7 Nov 2023 16:56:07 +0100 Subject: [PATCH] TASK: Move tests into Unit/Integration subfolders --- composer.json | 2 +- .../{ => Integration}/AbstractCheckpointStorageTestBase.php | 3 +-- tests/{ => Integration}/AbstractEventStoreTestBase.php | 2 +- tests/{ => Unit}/CatchUp/CatchUpTest.php | 3 +-- tests/{ => Unit}/Helper/BatchEventStreamTest.php | 2 +- tests/{ => Unit}/Helper/ClosureEventStreamTest.php | 2 +- tests/{ => Unit}/Helper/InMemoryCheckpointStorageTest.php | 4 ++-- tests/{ => Unit}/Helper/InMemoryEventStoreTest.php | 4 ++-- tests/{ => Unit}/Helper/InMemoryEventStreamTest.php | 5 +++-- 9 files changed, 13 insertions(+), 14 deletions(-) rename tests/{ => Integration}/AbstractCheckpointStorageTestBase.php (97%) rename tests/{ => Integration}/AbstractEventStoreTestBase.php (99%) rename tests/{ => Unit}/CatchUp/CatchUpTest.php (97%) rename tests/{ => Unit}/Helper/BatchEventStreamTest.php (98%) rename tests/{ => Unit}/Helper/ClosureEventStreamTest.php (98%) rename tests/{ => Unit}/Helper/InMemoryCheckpointStorageTest.php (83%) rename tests/{ => Unit}/Helper/InMemoryEventStoreTest.php (78%) rename tests/{ => Unit}/Helper/InMemoryEventStreamTest.php (96%) diff --git a/composer.json b/composer.json index 92c0744..879d0b7 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "test:phpstan": "phpstan", "test:cs": "phpcs --colors src", "test:cs:fix": "phpcbf --colors src", - "test:unit": "phpunit", + "test:unit": "phpunit tests/Unit", "test": [ "@test:phpstan", "@test:cs", diff --git a/tests/AbstractCheckpointStorageTestBase.php b/tests/Integration/AbstractCheckpointStorageTestBase.php similarity index 97% rename from tests/AbstractCheckpointStorageTestBase.php rename to tests/Integration/AbstractCheckpointStorageTestBase.php index 136ef36..19efa59 100644 --- a/tests/AbstractCheckpointStorageTestBase.php +++ b/tests/Integration/AbstractCheckpointStorageTestBase.php @@ -1,11 +1,10 @@