From b3d2086f58c55d27b3a7834d6ade8a4fcad85c71 Mon Sep 17 00:00:00 2001 From: Laurent Constantin Date: Sat, 7 Dec 2024 17:55:12 +0100 Subject: [PATCH] fix(kobo): Split Library controller and align names with tests --- .../Kobo/Api/V1/{ => Library}/LibraryController.php | 2 +- src/Controller/Kobo/Api/V1/Library/MetadataController.php | 0 src/Controller/Kobo/Api/V1/Library/StateController.php | 0 .../V1/AnalyticsControllerTest.php} | 5 +++-- .../V1/DownloadControllerTest.php} | 5 +++-- .../V1/InitializationControllerTest.json} | 0 .../V1/InitializationControllerTest.php} | 7 ++++--- .../Controller/Kobo/{ => Api/V1}/KoboTagControllerTest.php | 3 ++- .../Kobo/Api/V1/Library/MetadataControllerTest.php | 0 .../V1/Library/StateControllerTest.php} | 5 +++-- .../V1/Library/SyncControllerTest.php} | 5 +++-- .../V3/ContentControllerTest.php} | 5 +++-- 12 files changed, 22 insertions(+), 15 deletions(-) rename src/Controller/Kobo/Api/V1/{ => Library}/LibraryController.php (99%) create mode 100644 src/Controller/Kobo/Api/V1/Library/MetadataController.php create mode 100644 src/Controller/Kobo/Api/V1/Library/StateController.php rename tests/Controller/Kobo/{KoboAnalyticsControllerTest.php => Api/V1/AnalyticsControllerTest.php} (99%) rename tests/Controller/Kobo/{KoboDownloadControllerTest.php => Api/V1/DownloadControllerTest.php} (96%) rename tests/Controller/Kobo/{KoboInitializationControllerTest.json => Api/V1/InitializationControllerTest.json} (100%) rename tests/Controller/Kobo/{KoboInitializationControllerTest.php => Api/V1/InitializationControllerTest.php} (90%) rename tests/Controller/Kobo/{ => Api/V1}/KoboTagControllerTest.php (91%) create mode 100644 tests/Controller/Kobo/Api/V1/Library/MetadataControllerTest.php rename tests/Controller/Kobo/{KoboStateControllerTest.php => Api/V1/Library/StateControllerTest.php} (97%) rename tests/Controller/Kobo/{KoboSyncControllerTest.php => Api/V1/Library/SyncControllerTest.php} (98%) rename tests/Controller/Kobo/{ReadServiceCheckForChangesControllerTest.php => Api/V3/ContentControllerTest.php} (74%) diff --git a/src/Controller/Kobo/Api/V1/LibraryController.php b/src/Controller/Kobo/Api/V1/Library/LibraryController.php similarity index 99% rename from src/Controller/Kobo/Api/V1/LibraryController.php rename to src/Controller/Kobo/Api/V1/Library/LibraryController.php index 13517b7a..fa615900 100644 --- a/src/Controller/Kobo/Api/V1/LibraryController.php +++ b/src/Controller/Kobo/Api/V1/Library/LibraryController.php @@ -1,6 +1,6 @@