From 53ee309768c6d06ec977d3b9269e91cec6e67ecd Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 15 May 2023 11:58:19 +0200 Subject: [PATCH] Migrate all database fixtures (#10) We switched to PHPDataSets already but didn't migrate all usages. This commit now migrates all usages left behind. --- .../Cleanup/Fixtures/RemoveAllTest.xml | 224 ----------- .../Fixtures/RemoveAllTestDatabase.php | 238 ++++++++++++ .../Cleanup/Fixtures/RemovePastTest.xml | 341 ----------------- .../Fixtures/RemovePastTestDatabase.php | 356 ++++++++++++++++++ Tests/Functional/Cleanup/RemoveAllTest.php | 5 +- Tests/Functional/Cleanup/RemovePastTest.php | 5 +- Tests/Functional/Frontend/CacheTest.php | 5 +- Tests/Functional/Frontend/DatesTest.php | 5 +- Tests/Functional/Frontend/FilterTest.php | 9 +- .../FilterByASingleLocationViaFlexform.php | 89 +++++ .../FilterByASingleLocationViaFlexform.xml | 83 ---- .../FilterByTwoLocationsViaFlexform.php | 101 +++++ .../FilterByTwoLocationsViaFlexform.xml | 95 ----- .../Fixtures/Database/SiteStructure.csv | 4 - .../Fixtures/Database/SiteStructure.php | 18 + .../DestinationDataTest/AbstractTest.php | 5 +- .../Database/DefaultImportConfiguration.php | 15 + .../Database/FeaturesImportConfiguration.php | 48 +++ ...ateOfRecurringDatesImportConfiguration.php | 20 + .../Database/MinimalImportConfiguration.php | 13 + .../Database/SecondImportConfiguration.php | 26 ++ .../Fixtures/Database/SingleCategory.php | 17 + .../Database/SingleImportConfiguration.php | 18 + ...ingleImportConfigurationWithCategories.php | 17 + ...SingleImportConfigurationWithoutRegion.php | 14 + .../Fixtures/Database/SingleRegion.php | 11 + .../Fixtures/Database/Structure.php | 19 + .../Fixtures/DefaultImportConfiguration.xml | 15 - .../Fixtures/FeaturesImportConfiguration.xml | 43 --- ...ateOfRecurringDatesImportConfiguration.xml | 16 - .../Fixtures/MinimalImportConfiguration.xml | 12 - .../Fixtures/SecondImportConfiguration.xml | 25 -- .../Fixtures/SingleCategory.xml | 15 - .../Fixtures/SingleImportConfiguration.xml | 18 - ...ingleImportConfigurationWithCategories.xml | 17 - ...SingleImportConfigurationWithoutRegion.xml | 13 - .../Fixtures/SingleRegion.xml | 9 - .../Fixtures/Structure.xml | 16 - .../ImportCleansTransientFilesTest.php | 2 +- .../ImportDoesNotUseUploadsFolderTest.php | 2 +- ...ImportDoesntBreakWithLongFileTitleTest.php | 6 +- ...rtDoesntEndUpInEndlessDateCreationTest.php | 6 +- .../ImportsAllConfigurationTest.php | 8 +- .../ImportsExampleAsExpectedTest.php | 6 +- .../ImportsFeaturesTest.php | 2 +- .../ImportsFirstDateOfDatesTest.php | 2 +- .../ImportsSingleConfigurationTest.php | 6 +- .../ImportsTicketsTest.php | 6 +- .../ImportsWithConfiguredRepeatUntilTest.php | 2 +- .../ImportsWithLocationsTest.php | 2 +- ...mportsWithoutCategoryIfNotProvidedTest.php | 4 +- .../ImportsWithoutLocationTest.php | 2 +- .../ImportsWithoutRegionIfNotProvidedTest.php | 4 +- 53 files changed, 1076 insertions(+), 984 deletions(-) delete mode 100644 Tests/Functional/Cleanup/Fixtures/RemoveAllTest.xml create mode 100644 Tests/Functional/Cleanup/Fixtures/RemoveAllTestDatabase.php delete mode 100644 Tests/Functional/Cleanup/Fixtures/RemovePastTest.xml create mode 100644 Tests/Functional/Cleanup/Fixtures/RemovePastTestDatabase.php create mode 100644 Tests/Functional/Frontend/Fixtures/Database/FilterByASingleLocationViaFlexform.php delete mode 100644 Tests/Functional/Frontend/Fixtures/Database/FilterByASingleLocationViaFlexform.xml create mode 100644 Tests/Functional/Frontend/Fixtures/Database/FilterByTwoLocationsViaFlexform.php delete mode 100644 Tests/Functional/Frontend/Fixtures/Database/FilterByTwoLocationsViaFlexform.xml delete mode 100644 Tests/Functional/Frontend/Fixtures/Database/SiteStructure.csv create mode 100644 Tests/Functional/Frontend/Fixtures/Database/SiteStructure.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/DefaultImportConfiguration.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/FeaturesImportConfiguration.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/FirstDateOfRecurringDatesImportConfiguration.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/MinimalImportConfiguration.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SecondImportConfiguration.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleCategory.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfiguration.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfigurationWithCategories.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfigurationWithoutRegion.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleRegion.php create mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Database/Structure.php delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/FeaturesImportConfiguration.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/FirstDateOfRecurringDatesImportConfiguration.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/MinimalImportConfiguration.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/SecondImportConfiguration.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfiguration.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithCategories.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithoutRegion.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml delete mode 100644 Tests/Functional/Import/DestinationDataTest/Fixtures/Structure.xml diff --git a/Tests/Functional/Cleanup/Fixtures/RemoveAllTest.xml b/Tests/Functional/Cleanup/Fixtures/RemoveAllTest.xml deleted file mode 100644 index 88563ac..0000000 --- a/Tests/Functional/Cleanup/Fixtures/RemoveAllTest.xml +++ /dev/null @@ -1,224 +0,0 @@ - - - - 0 - 1 - Root page - 1 - - - 1 - 2 - Storage - 254 - - - - 1 - 2 - Example Category 1 - - - 2 - 2 - Example Category 2 - - - - 1 - 1 - tx_events_domain_model_event - - - 2 - 1 - tx_events_domain_model_event - - - - 1 - 0 - 1423209858 - 1370878372 - 0 - 0 - fileadmin/ (auto-created) - This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3. - Local - - - - - - - fileadmin/ - - - relative - - - 1 - - - - - ]]> - 1 - 1 - 1 - 1 - _processed_ - 1 - 1 - - - - 1 - 0 - 1371467047 - 2 - 1 - /user_uploads/example-for-event.gif - gif - image/gif - ext_icon.gif - 359ae0fb420fe8afe1a8b8bc5e46d75090a826b9 - 637 - 1370877201 - 1369407629 - 0 - 0 - 0 - 475768e491580fb8b74ed36c2b1aaf619ca5e11d - b4ab666a114d9905a50606d1837b74d952dfd90f - - - 2 - 0 - 1371467047 - 2 - 1 - /user_uploads/example-for-partner.gif - gif - image/gif - ext_icon.gif - 359ae0fb420fe8afe1a8b8bc5e46d75090a826b9 - 637 - 1370877201 - 1369407629 - 0 - 0 - 0 - 475768e491580fb8b74ed36c2b1aaf619ca5e11d - b4ab666a114d9905a50606d1837b74d952dfd90f - - - - 1 - 0 - 1371467047 - 1371467047 - 1 - 1 - - - 2 - 0 - 1371467047 - 1371467047 - 1 - 2 - - - - 1 - 2 - 1373537480 - 1371484347 - 1 - 0 - 0 - 0 - 1 - 1 - tx_events_domain_model_event - images - 1 - sys_file - - - 2 - 2 - 1373537480 - 1371484347 - 1 - 0 - 0 - 0 - 2 - 1 - tx_events_domain_model_partner - images - 1 - sys_file - - - - 1 - 2 - Example Region - - - - 1 - 2 - Example Partner - https://example.com - 1 - - - - 1 - 2 - Example Organizer - Example Street 17 - - Example Town - 00101 - +49 2161 56 36 27 37 48 94 28 - https://example.com - someone@example.com - - - - 1 - 2 - Example Event - Some further info about event - 5540-34 - 5540-34 - 1 - 1 - 1 - 0 - 2 - - - - 1 - 2 - 1 - 4101372000 - 4101377400 - no - - - - 2 - 2 - 1 - 4101372000 - 4101377400 - no - - diff --git a/Tests/Functional/Cleanup/Fixtures/RemoveAllTestDatabase.php b/Tests/Functional/Cleanup/Fixtures/RemoveAllTestDatabase.php new file mode 100644 index 0000000..d5a6dbd --- /dev/null +++ b/Tests/Functional/Cleanup/Fixtures/RemoveAllTestDatabase.php @@ -0,0 +1,238 @@ + [ + [ + 'pid' => '0', + 'uid' => '1', + 'title' => 'Root page', + 'slug' => '1', + ], + [ + 'pid' => '1', + 'uid' => '2', + 'title' => 'Storage', + 'doktype' => '254', + ], + ], + 'sys_category' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example Category 1', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'title' => 'Example Category 2', + ], + ], + 'sys_category_record_mm' => [ + [ + 'uid_local' => '1', + 'uid_foreign' => '1', + 'tablenames' => 'tx_events_domain_model_event', + ], + [ + 'uid_local' => '2', + 'uid_foreign' => '1', + 'tablenames' => 'tx_events_domain_model_event', + ], + ], + 'sys_file_storage' => [ + [ + 'uid' => '1', + 'pid' => '0', + 'tstamp' => '1423209858', + 'crdate' => '1370878372', + 'cruser_id' => '0', + 'deleted' => '0', + 'name' => 'fileadmin/ (auto-created)', + 'description' => 'This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3.', + 'driver' => 'Local', + 'configuration' => ' + + + + + + fileadmin/ + + + relative + + + 1 + + + + + + ', + 'is_browsable' => '1', + 'is_public' => '1', + 'is_writable' => '1', + 'is_online' => '1', + 'processingfolder' => '_processed_', + 'is_default' => '1', + 'auto_extract_metadata' => '1', + ], + ], + 'sys_file' => [ + [ + 'uid' => '1', + 'pid' => '0', + 'tstamp' => '1371467047', + 'type' => '2', + 'storage' => '1', + 'identifier' => '/user_uploads/example-for-event.gif', + 'extension' => 'gif', + 'mime_type' => 'image/gif', + 'name' => 'ext_icon.gif', + 'sha1' => '359ae0fb420fe8afe1a8b8bc5e46d75090a826b9', + 'size' => '637', + 'creation_date' => '1370877201', + 'modification_date' => '1369407629', + 'last_indexed' => '0', + 'missing' => '0', + 'metadata' => '0', + 'identifier_hash' => '475768e491580fb8b74ed36c2b1aaf619ca5e11d', + 'folder_hash' => 'b4ab666a114d9905a50606d1837b74d952dfd90f', + ], + [ + 'uid' => '2', + 'pid' => '0', + 'tstamp' => '1371467047', + 'type' => '2', + 'storage' => '1', + 'identifier' => '/user_uploads/example-for-partner.gif', + 'extension' => 'gif', + 'mime_type' => 'image/gif', + 'name' => 'ext_icon.gif', + 'sha1' => '359ae0fb420fe8afe1a8b8bc5e46d75090a826b9', + 'size' => '637', + 'creation_date' => '1370877201', + 'modification_date' => '1369407629', + 'last_indexed' => '0', + 'missing' => '0', + 'metadata' => '0', + 'identifier_hash' => '475768e491580fb8b74ed36c2b1aaf619ca5e11d', + 'folder_hash' => 'b4ab666a114d9905a50606d1837b74d952dfd90f', + ], + ], + 'sys_file_metadata' => [ + [ + 'uid' => '1', + 'pid' => '0', + 'tstamp' => '1371467047', + 'crdate' => '1371467047', + 'cruser_id' => '1', + 'file' => '1', + ], + [ + 'uid' => '2', + 'pid' => '0', + 'tstamp' => '1371467047', + 'crdate' => '1371467047', + 'cruser_id' => '1', + 'file' => '2', + ], + ], + 'sys_file_reference' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'tstamp' => '1373537480', + 'crdate' => '1371484347', + 'cruser_id' => '1', + 'deleted' => '0', + 'hidden' => '0', + 'sys_language_uid' => '0', + 'uid_local' => '1', + 'uid_foreign' => '1', + 'tablenames' => 'tx_events_domain_model_event', + 'fieldname' => 'images', + 'sorting_foreign' => '1', + 'table_local' => 'sys_file', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'tstamp' => '1373537480', + 'crdate' => '1371484347', + 'cruser_id' => '1', + 'deleted' => '0', + 'hidden' => '0', + 'sys_language_uid' => '0', + 'uid_local' => '2', + 'uid_foreign' => '1', + 'tablenames' => 'tx_events_domain_model_partner', + 'fieldname' => 'images', + 'sorting_foreign' => '1', + 'table_local' => 'sys_file', + ], + ], + 'tx_events_domain_model_region' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example Region', + ], + ], + 'tx_events_domain_model_partner' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example Partner', + 'link' => 'https://example.com', + 'images' => '1', + ], + ], + 'tx_events_domain_model_organizer' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'name' => 'Example Organizer', + 'street' => 'Example Street 17', + 'district' => '', + 'city' => 'Example Town', + 'zip' => '00101', + 'phone' => '+49 2161 56 36 27 37 48 94 28', + 'web' => 'https://example.com', + 'email' => 'someone@example.com', + ], + ], + 'tx_events_domain_model_event' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example Event', + 'subtitle' => 'Some further info about event', + 'global_id' => '5540-34', + 'slug' => '5540-34', + 'organizer' => '1', + 'partner' => '1', + 'region' => '1', + 'images' => '0', + 'categories' => '2', + ], + ], + 'tx_events_domain_model_date' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'event' => '1', + 'start' => '4101372000', + 'end' => '4101377400', + 'canceled' => 'no', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'event' => '1', + 'start' => '4101372000', + 'end' => '4101377400', + 'canceled' => 'no', + ], + ], +]; diff --git a/Tests/Functional/Cleanup/Fixtures/RemovePastTest.xml b/Tests/Functional/Cleanup/Fixtures/RemovePastTest.xml deleted file mode 100644 index 561e86c..0000000 --- a/Tests/Functional/Cleanup/Fixtures/RemovePastTest.xml +++ /dev/null @@ -1,341 +0,0 @@ - - - - 0 - 1 - Root page - 1 - - - 1 - 2 - Storage - 254 - - - - 1 - 2 - Example Category 1 - - - 2 - 2 - Example Category 2 - - - - 1 - 1 - tx_events_domain_model_event - - - 2 - 1 - tx_events_domain_model_event - - - - 1 - 0 - 1423209858 - 1370878372 - 0 - 0 - fileadmin/ (auto-created) - This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3. - Local - - - - - - - fileadmin/ - - - relative - - - 1 - - - - - ]]> - 1 - 1 - 1 - 1 - _processed_ - 1 - 1 - - - - 1 - 0 - 1371467047 - 2 - 1 - /user_uploads/example-for-event.gif - gif - image/gif - ext_icon.gif - 359ae0fb420fe8afe1a8b8bc5e46d75090a826b9 - 637 - 1370877201 - 1369407629 - 0 - 0 - 0 - 475768e491580fb8b74ed36c2b1aaf619ca5e11d - b4ab666a114d9905a50606d1837b74d952dfd90f - - - 2 - 0 - 1371467047 - 2 - 1 - /user_uploads/example-for-partner.gif - gif - image/gif - ext_icon.gif - 359ae0fb420fe8afe1a8b8bc5e46d75090a826b9 - 637 - 1370877201 - 1369407629 - 0 - 0 - 0 - 475768e491580fb8b74ed36c2b1aaf619ca5e11d - b4ab666a114d9905a50606d1837b74d952dfd90f - - - 3 - 0 - 1371467047 - 2 - 1 - /user_uploads/example-for-future-event.gif - gif - image/gif - ext_icon.gif - 359ae0fb420fe8afe1a8b8bc5e46d75090a826b9 - 637 - 1370877201 - 1369407629 - 0 - 0 - 0 - 475768e491580fb8b74ed36c2b1aaf619ca5e11d - b4ab666a114d9905a50606d1837b74d952dfd90f - - - 4 - 0 - 1371467047 - 2 - 1 - /user_uploads/example-to-keep.gif - gif - image/gif - example-to-keep.gif - 359ae0fb420fe8afe1a8b8bc5e46d75090a826b9 - 637 - 1370877201 - 1369407629 - 0 - 0 - 0 - 475768e491580fb8b74ed36c2b1aaf619ca5e11d - b4ab666a114d9905a50606d1837b74d952dfd90f - - - - 1 - 0 - 1371467047 - 1371467047 - 1 - 1 - - - 2 - 0 - 1371467047 - 1371467047 - 1 - 2 - - - 3 - 0 - 1371467047 - 1371467047 - 1 - 3 - - - 4 - 0 - 1371467047 - 1371467047 - 1 - 4 - - - - 1 - 2 - 1373537480 - 1371484347 - 1 - 0 - 0 - 0 - 1 - 1 - tx_events_domain_model_event - images - 1 - sys_file - - - 2 - 2 - 1373537480 - 1371484347 - 1 - 0 - 0 - 0 - 2 - 1 - tx_events_domain_model_partner - images - 1 - sys_file - - - 3 - 2 - 1373537480 - 1371484347 - 1 - 0 - 0 - 0 - 3 - 2 - tx_events_domain_model_event - images - 1 - sys_file - - - 4 - 2 - 1373537480 - 1371484347 - 1 - 1 - 0 - 0 - 4 - 1 - tt_content - images - 1 - sys_file - - - - 1 - 2 - Example Region - - - - 1 - 2 - Example Partner - https://example.com - 1 - - - - 1 - 2 - Example Organizer - Example Street 17 - - Example Town - 00101 - +49 2161 56 36 27 37 48 94 28 - https://example.com - someone@example.com - - - - 1 - 2 - Example Event - Some further info about event - 5540-34 - 5540-34 - 1 - 1 - 1 - 0 - 2 - - - 1 - 2 - 1 - 0 - 10 - no - - - - 2 - 2 - Example Future Event - Some further info about event - 5540-33 - 5540-33 - 2 - 1 - 1 - 0 - 1 - - - 3 - 2 - 2 - 9999999998 - 9999999999 - no - - - 2 - 2 - Example Organizer for future event - Example Street 17 - - Example Town - 00101 - +49 2161 56 36 27 37 48 94 28 - https://example.com - someone@example.com - - - 2 - 2 - tx_events_domain_model_event - - diff --git a/Tests/Functional/Cleanup/Fixtures/RemovePastTestDatabase.php b/Tests/Functional/Cleanup/Fixtures/RemovePastTestDatabase.php new file mode 100644 index 0000000..3e440b1 --- /dev/null +++ b/Tests/Functional/Cleanup/Fixtures/RemovePastTestDatabase.php @@ -0,0 +1,356 @@ + [ + [ + 'pid' => '0', + 'uid' => '1', + 'title' => 'Root page', + 'slug' => '1', + ], + [ + 'pid' => '1', + 'uid' => '2', + 'title' => 'Storage', + 'doktype' => '254', + ], + ], + 'sys_category' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example Category 1', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'title' => 'Example Category 2', + ], + ], + 'sys_category_record_mm' => [ + [ + 'uid_local' => '1', + 'uid_foreign' => '1', + 'tablenames' => 'tx_events_domain_model_event', + ], + [ + 'uid_local' => '2', + 'uid_foreign' => '1', + 'tablenames' => 'tx_events_domain_model_event', + ], + [ + 'uid_local' => '2', + 'uid_foreign' => '2', + 'tablenames' => 'tx_events_domain_model_event', + ], + ], + 'sys_file_storage' => [ + [ + 'uid' => '1', + 'pid' => '0', + 'tstamp' => '1423209858', + 'crdate' => '1370878372', + 'cruser_id' => '0', + 'deleted' => '0', + 'name' => 'fileadmin/ (auto-created)', + 'description' => 'This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3.', + 'driver' => 'Local', + 'configuration' => ' + + + + + + fileadmin/ + + + relative + + + 1 + + + + + + ', + 'is_browsable' => '1', + 'is_public' => '1', + 'is_writable' => '1', + 'is_online' => '1', + 'processingfolder' => '_processed_', + 'is_default' => '1', + 'auto_extract_metadata' => '1', + ], + ], + 'sys_file' => [ + [ + 'uid' => '1', + 'pid' => '0', + 'tstamp' => '1371467047', + 'type' => '2', + 'storage' => '1', + 'identifier' => '/user_uploads/example-for-event.gif', + 'extension' => 'gif', + 'mime_type' => 'image/gif', + 'name' => 'ext_icon.gif', + 'sha1' => '359ae0fb420fe8afe1a8b8bc5e46d75090a826b9', + 'size' => '637', + 'creation_date' => '1370877201', + 'modification_date' => '1369407629', + 'last_indexed' => '0', + 'missing' => '0', + 'metadata' => '0', + 'identifier_hash' => '475768e491580fb8b74ed36c2b1aaf619ca5e11d', + 'folder_hash' => 'b4ab666a114d9905a50606d1837b74d952dfd90f', + ], + [ + 'uid' => '2', + 'pid' => '0', + 'tstamp' => '1371467047', + 'type' => '2', + 'storage' => '1', + 'identifier' => '/user_uploads/example-for-partner.gif', + 'extension' => 'gif', + 'mime_type' => 'image/gif', + 'name' => 'ext_icon.gif', + 'sha1' => '359ae0fb420fe8afe1a8b8bc5e46d75090a826b9', + 'size' => '637', + 'creation_date' => '1370877201', + 'modification_date' => '1369407629', + 'last_indexed' => '0', + 'missing' => '0', + 'metadata' => '0', + 'identifier_hash' => '475768e491580fb8b74ed36c2b1aaf619ca5e11d', + 'folder_hash' => 'b4ab666a114d9905a50606d1837b74d952dfd90f', + ], + [ + 'uid' => '3', + 'pid' => '0', + 'tstamp' => '1371467047', + 'type' => '2', + 'storage' => '1', + 'identifier' => '/user_uploads/example-for-future-event.gif', + 'extension' => 'gif', + 'mime_type' => 'image/gif', + 'name' => 'ext_icon.gif', + 'sha1' => '359ae0fb420fe8afe1a8b8bc5e46d75090a826b9', + 'size' => '637', + 'creation_date' => '1370877201', + 'modification_date' => '1369407629', + 'last_indexed' => '0', + 'missing' => '0', + 'metadata' => '0', + 'identifier_hash' => '475768e491580fb8b74ed36c2b1aaf619ca5e11d', + 'folder_hash' => 'b4ab666a114d9905a50606d1837b74d952dfd90f', + ], + [ + 'uid' => '4', + 'pid' => '0', + 'tstamp' => '1371467047', + 'type' => '2', + 'storage' => '1', + 'identifier' => '/user_uploads/example-to-keep.gif', + 'extension' => 'gif', + 'mime_type' => 'image/gif', + 'name' => 'example-to-keep.gif', + 'sha1' => '359ae0fb420fe8afe1a8b8bc5e46d75090a826b9', + 'size' => '637', + 'creation_date' => '1370877201', + 'modification_date' => '1369407629', + 'last_indexed' => '0', + 'missing' => '0', + 'metadata' => '0', + 'identifier_hash' => '475768e491580fb8b74ed36c2b1aaf619ca5e11d', + 'folder_hash' => 'b4ab666a114d9905a50606d1837b74d952dfd90f', + ], + ], + 'sys_file_metadata' => [ + [ + 'uid' => '1', + 'pid' => '0', + 'tstamp' => '1371467047', + 'crdate' => '1371467047', + 'cruser_id' => '1', + 'file' => '1', + ], + [ + 'uid' => '2', + 'pid' => '0', + 'tstamp' => '1371467047', + 'crdate' => '1371467047', + 'cruser_id' => '1', + 'file' => '2', + ], + [ + 'uid' => '3', + 'pid' => '0', + 'tstamp' => '1371467047', + 'crdate' => '1371467047', + 'cruser_id' => '1', + 'file' => '3', + ], + [ + 'uid' => '4', + 'pid' => '0', + 'tstamp' => '1371467047', + 'crdate' => '1371467047', + 'cruser_id' => '1', + 'file' => '4', + ], + ], + 'sys_file_reference' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'tstamp' => '1373537480', + 'crdate' => '1371484347', + 'cruser_id' => '1', + 'deleted' => '0', + 'hidden' => '0', + 'sys_language_uid' => '0', + 'uid_local' => '1', + 'uid_foreign' => '1', + 'tablenames' => 'tx_events_domain_model_event', + 'fieldname' => 'images', + 'sorting_foreign' => '1', + 'table_local' => 'sys_file', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'tstamp' => '1373537480', + 'crdate' => '1371484347', + 'cruser_id' => '1', + 'deleted' => '0', + 'hidden' => '0', + 'sys_language_uid' => '0', + 'uid_local' => '2', + 'uid_foreign' => '1', + 'tablenames' => 'tx_events_domain_model_partner', + 'fieldname' => 'images', + 'sorting_foreign' => '1', + 'table_local' => 'sys_file', + ], + [ + 'uid' => '3', + 'pid' => '2', + 'tstamp' => '1373537480', + 'crdate' => '1371484347', + 'cruser_id' => '1', + 'deleted' => '0', + 'hidden' => '0', + 'sys_language_uid' => '0', + 'uid_local' => '3', + 'uid_foreign' => '2', + 'tablenames' => 'tx_events_domain_model_event', + 'fieldname' => 'images', + 'sorting_foreign' => '1', + 'table_local' => 'sys_file', + ], + [ + 'uid' => '4', + 'pid' => '2', + 'tstamp' => '1373537480', + 'crdate' => '1371484347', + 'cruser_id' => '1', + 'deleted' => '1', + 'hidden' => '0', + 'sys_language_uid' => '0', + 'uid_local' => '4', + 'uid_foreign' => '1', + 'tablenames' => 'tt_content', + 'fieldname' => 'images', + 'sorting_foreign' => '1', + 'table_local' => 'sys_file', + ], + ], + 'tx_events_domain_model_region' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example Region', + ], + ], + 'tx_events_domain_model_partner' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example Partner', + 'link' => 'https://example.com', + 'images' => '1', + ], + ], + 'tx_events_domain_model_organizer' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'name' => 'Example Organizer', + 'street' => 'Example Street 17', + 'district' => '', + 'city' => 'Example Town', + 'zip' => '00101', + 'phone' => '+49 2161 56 36 27 37 48 94 28', + 'web' => 'https://example.com', + 'email' => 'someone@example.com', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'name' => 'Example Organizer for future event', + 'street' => 'Example Street 17', + 'district' => '', + 'city' => 'Example Town', + 'zip' => '00101', + 'phone' => '+49 2161 56 36 27 37 48 94 28', + 'web' => 'https://example.com', + 'email' => 'someone@example.com', + ], + ], + 'tx_events_domain_model_event' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example Event', + 'subtitle' => 'Some further info about event', + 'global_id' => '5540-34', + 'slug' => '5540-34', + 'organizer' => '1', + 'partner' => '1', + 'region' => '1', + 'images' => '0', + 'categories' => '2', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'title' => 'Example Future Event', + 'subtitle' => 'Some further info about event', + 'global_id' => '5540-33', + 'slug' => '5540-33', + 'organizer' => '2', + 'partner' => '1', + 'region' => '1', + 'images' => '0', + 'categories' => '1', + ], + ], + 'tx_events_domain_model_date' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'event' => '1', + 'start' => '0', + 'end' => '10', + 'canceled' => 'no', + ], + [ + 'uid' => '3', + 'pid' => '2', + 'event' => '2', + 'start' => '9999999998', + 'end' => '9999999999', + 'canceled' => 'no', + ], + ], +]; diff --git a/Tests/Functional/Cleanup/RemoveAllTest.php b/Tests/Functional/Cleanup/RemoveAllTest.php index 27695eb..fb26f07 100644 --- a/Tests/Functional/Cleanup/RemoveAllTest.php +++ b/Tests/Functional/Cleanup/RemoveAllTest.php @@ -2,6 +2,7 @@ namespace Wrm\Events\Tests\Functional\Cleanup; +use Codappix\Typo3PhpDatasets\TestingFramework; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Tester\CommandTester; use TYPO3\CMS\Core\Utility\GeneralUtility; @@ -13,6 +14,8 @@ use Wrm\Events\Command\RemoveAllCommand; */ class RemoveAllTest extends FunctionalTestCase { + use TestingFramework; + protected $testExtensionsToLoad = [ 'typo3conf/ext/events', ]; @@ -33,7 +36,7 @@ class RemoveAllTest extends FunctionalTestCase */ public function removesAllData(): void { - $this->importDataSet('EXT:events/Tests/Functional/Cleanup/Fixtures/RemoveAllTest.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/RemoveAllTestDatabase.php'); $subject = $this->getContainer()->get(RemoveAllCommand::class); self::assertInstanceOf(Command::class, $subject); diff --git a/Tests/Functional/Cleanup/RemovePastTest.php b/Tests/Functional/Cleanup/RemovePastTest.php index 5ac279e..badcc85 100644 --- a/Tests/Functional/Cleanup/RemovePastTest.php +++ b/Tests/Functional/Cleanup/RemovePastTest.php @@ -2,6 +2,7 @@ namespace Wrm\Events\Tests\Functional\Cleanup; +use Codappix\Typo3PhpDatasets\TestingFramework; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Tester\CommandTester; use TYPO3\CMS\Core\Utility\GeneralUtility; @@ -13,6 +14,8 @@ use Wrm\Events\Command\RemovePastCommand; */ class RemovePastTest extends FunctionalTestCase { + use TestingFramework; + protected $testExtensionsToLoad = [ 'typo3conf/ext/events', ]; @@ -33,7 +36,7 @@ class RemovePastTest extends FunctionalTestCase */ public function removesPastData(): void { - $this->importDataSet('EXT:events/Tests/Functional/Cleanup/Fixtures/RemovePastTest.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/RemovePastTestDatabase.php'); $subject = $this->getContainer()->get(RemovePastCommand::class); self::assertInstanceOf(Command::class, $subject); diff --git a/Tests/Functional/Frontend/CacheTest.php b/Tests/Functional/Frontend/CacheTest.php index 4fc79e7..1481ac7 100644 --- a/Tests/Functional/Frontend/CacheTest.php +++ b/Tests/Functional/Frontend/CacheTest.php @@ -24,6 +24,7 @@ declare(strict_types=1); namespace Wrm\Events\Tests\Functional\Frontend; use Codappix\Typo3PhpDatasets\PhpDataSet; +use Codappix\Typo3PhpDatasets\TestingFramework; use DateTimeImmutable; use DateTimeZone; use Psr\Http\Message\ResponseInterface; @@ -35,6 +36,8 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; */ class CacheTest extends FunctionalTestCase { + use TestingFramework; + protected $testExtensionsToLoad = [ 'typo3conf/ext/events', 'typo3conf/ext/events/Tests/Functional/Frontend/Fixtures/Extensions/example', @@ -52,7 +55,7 @@ class CacheTest extends FunctionalTestCase { parent::setUp(); - $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.csv'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.php'); (new PhpDataSet())->import(['tt_content' => [[ 'uid' => '1', 'pid' => '1', diff --git a/Tests/Functional/Frontend/DatesTest.php b/Tests/Functional/Frontend/DatesTest.php index 5010a36..6769f63 100644 --- a/Tests/Functional/Frontend/DatesTest.php +++ b/Tests/Functional/Frontend/DatesTest.php @@ -23,6 +23,7 @@ declare(strict_types=1); namespace Wrm\Events\Tests\Functional\Frontend; +use Codappix\Typo3PhpDatasets\TestingFramework; use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; use Wrm\Events\Frontend\Daest; @@ -32,6 +33,8 @@ use Wrm\Events\Frontend\Daest; */ class DatesTest extends FunctionalTestCase { + use TestingFramework; + protected $testExtensionsToLoad = [ 'typo3conf/ext/events', ]; @@ -48,7 +51,7 @@ class DatesTest extends FunctionalTestCase { parent::setUp(); - $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.csv'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.php'); $this->setUpFrontendRootPage(1, [ 'constants' => [ 'EXT:events/Configuration/TypoScript/constants.typoscript', diff --git a/Tests/Functional/Frontend/FilterTest.php b/Tests/Functional/Frontend/FilterTest.php index fcad57d..66f0bde 100644 --- a/Tests/Functional/Frontend/FilterTest.php +++ b/Tests/Functional/Frontend/FilterTest.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Wrm\Events\Tests\Functional\Frontend; +use Codappix\Typo3PhpDatasets\TestingFramework; use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; @@ -13,6 +14,8 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; */ class FilterTest extends FunctionalTestCase { + use TestingFramework; + protected $testExtensionsToLoad = [ 'typo3conf/ext/events', ]; @@ -29,7 +32,7 @@ class FilterTest extends FunctionalTestCase { parent::setUp(); - $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.csv'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.php'); $this->setUpFrontendRootPage(1, [ 'constants' => [ 'EXT:events/Configuration/TypoScript/constants.typoscript', @@ -47,7 +50,7 @@ class FilterTest extends FunctionalTestCase */ public function canFilterByASingleLocationViaFlexform(): void { - $this->importDataSet('EXT:events/Tests/Functional/Frontend/Fixtures/Database/FilterByASingleLocationViaFlexform.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/FilterByASingleLocationViaFlexform.php'); $request = new InternalRequest(); $request = $request->withPageId(1); @@ -65,7 +68,7 @@ class FilterTest extends FunctionalTestCase */ public function canFilterByTwoLocationsViaFlexform(): void { - $this->importDataSet('EXT:events/Tests/Functional/Frontend/Fixtures/Database/FilterByTwoLocationsViaFlexform.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/FilterByTwoLocationsViaFlexform.php'); $request = new InternalRequest(); $request = $request->withPageId(1); diff --git a/Tests/Functional/Frontend/Fixtures/Database/FilterByASingleLocationViaFlexform.php b/Tests/Functional/Frontend/Fixtures/Database/FilterByASingleLocationViaFlexform.php new file mode 100644 index 0000000..37a248d --- /dev/null +++ b/Tests/Functional/Frontend/Fixtures/Database/FilterByASingleLocationViaFlexform.php @@ -0,0 +1,89 @@ + [ + [ + 'pid' => '1', + 'uid' => '1', + 'CType' => 'list', + 'list_type' => 'events_datelist', + 'header' => 'Kino Events', + 'pi_flexform' => ' + + + + + + 1 + + + + + + ', + ], + ], + 'tx_events_domain_model_location' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'name' => 'Theater im Gewölbe', + 'street' => 'Cranach-Haus Markt 11/12', + 'city' => 'Weimar', + 'zip' => '99423', + 'country' => 'Deutschland', + 'longitude' => '11.330248', + 'latitude' => '50.979349', + ], + ], + 'tx_events_domain_model_event' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Was hat das Universum mit mir zu tun?', + 'global_id' => 'e_100478529', + 'teaser' => '„WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“ + Ein Abend mit Prof. Dr. Harald Lesch', + 'details' => '„WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“ + Ein Abend mit Prof. Dr. Harald Lesch + Auf den Spuren von Goethes Naturphilosophie ist der Astrophysiker und Wissenschaftsjournalist Prof. Dr. Harald Lesch in Weimar schon mehrmals präsent gewesen. Jetzt hält er einen Vortrag zu keiner geringeren Frage als „Was hat das Universum mit mir zu tun?“ Ob Goethe darauf eine pointierte Antwort eingefallen wäre? Sein Faust wollte die Spur seiner Erdentage nicht in Äonen untergehen sehen. Harald Lesch behauptet: Wir sind und bleiben stets Teil der Äonen - denn „wir sind alle Sternenstaub. Vor einer halben Ewigkeit ist ein Stern explodiert und hat alle Stoffe aus denen wir bestehen hervorgebracht. Und wenn das bei uns geklappt hat, könnte es auch noch woanders passiert sein.“ Erleben Sie einen faszinierenden Mix aus Rednerkunst und virtuoser musikalischer Begleitung. Neben Prof. Dr. Harald Lesch begibt sich der Musiker Hans Raths (Bayon) mit auf die Reise ins theatralische und philosophische Universum. Eine Veranstaltung nicht nur für Science-Fiction-Freaks, sondern für alle Kosmopoliten!', + 'price_info' => 'Preis inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl', + 'location' => '1', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'title' => 'Lotte in Weimar', + 'global_id' => 'e_100453137', + 'teaser' => 'Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann', + 'details' => 'LOTTE IN WEIMAR + Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann + „Welch buchenswertes Ereignis!“, ruft der Kellner Mager aus, als er erfährt, wer da in seinem Gasthaus „Zum Elephanten“ abgestiegen ist: Die berühmte Heldin aus Goethes „Die Leiden des jungen Werthers“, Charlotte Kestner, geborene Buff aus Wetzlar, – das „Urbild“ der Lotte sozusagen! Eine heiter-ironische Abrechnung mit dem Starkult anno 1816 fast am Originalschauplatz. Mit Regine Heintze, Heike Meyer und Detlef Heintze. Inszenierung: Michael Kliefert/ Detlef Heintze.', + 'price_info' => 'Preise inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl (ermäßigt alkoholfrei)', + 'location' => '0', + ], + ], + 'tx_events_domain_model_date' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'event' => '1', + 'start' => '1661626800', + 'end' => '1661632200', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'event' => '1', + 'start' => '1660158000', + 'end' => '1660163400', + ], + [ + 'uid' => '3', + 'pid' => '2', + 'event' => '2', + 'start' => '1661194800', + 'end' => '1661200200', + ], + ], +]; diff --git a/Tests/Functional/Frontend/Fixtures/Database/FilterByASingleLocationViaFlexform.xml b/Tests/Functional/Frontend/Fixtures/Database/FilterByASingleLocationViaFlexform.xml deleted file mode 100644 index 0dad70a..0000000 --- a/Tests/Functional/Frontend/Fixtures/Database/FilterByASingleLocationViaFlexform.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 1 - 1 - list - events_datelist -
Kino Events
- - - - - - - 1 - - - - - - ]]> -
- - - 1 - 2 - Theater im Gewölbe - Cranach-Haus Markt 11/12 - Weimar - 99423 - Deutschland - 11.330248 - 50.979349 - - - - 1 - 2 - Was hat das Universum mit mir zu tun? - e_100478529 - „WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“ - Ein Abend mit Prof. Dr. Harald Lesch -
„WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“ - Ein Abend mit Prof. Dr. Harald Lesch - Auf den Spuren von Goethes Naturphilosophie ist der Astrophysiker und Wissenschaftsjournalist Prof. Dr. Harald Lesch in Weimar schon mehrmals präsent gewesen. Jetzt hält er einen Vortrag zu keiner geringeren Frage als „Was hat das Universum mit mir zu tun?“ Ob Goethe darauf eine pointierte Antwort eingefallen wäre? Sein Faust wollte die Spur seiner Erdentage nicht in Äonen untergehen sehen. Harald Lesch behauptet: Wir sind und bleiben stets Teil der Äonen - denn „wir sind alle Sternenstaub. Vor einer halben Ewigkeit ist ein Stern explodiert und hat alle Stoffe aus denen wir bestehen hervorgebracht. Und wenn das bei uns geklappt hat, könnte es auch noch woanders passiert sein.“ Erleben Sie einen faszinierenden Mix aus Rednerkunst und virtuoser musikalischer Begleitung. Neben Prof. Dr. Harald Lesch begibt sich der Musiker Hans Raths (Bayon) mit auf die Reise ins theatralische und philosophische Universum. Eine Veranstaltung nicht nur für Science-Fiction-Freaks, sondern für alle Kosmopoliten!
- Preis inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl - 1 -
- - 2 - 2 - Lotte in Weimar - e_100453137 - Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann -
LOTTE IN WEIMAR - Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann - „Welch buchenswertes Ereignis!“, ruft der Kellner Mager aus, als er erfährt, wer da in seinem Gasthaus „Zum Elephanten“ abgestiegen ist: Die berühmte Heldin aus Goethes „Die Leiden des jungen Werthers“, Charlotte Kestner, geborene Buff aus Wetzlar, – das „Urbild“ der Lotte sozusagen! Eine heiter-ironische Abrechnung mit dem Starkult anno 1816 fast am Originalschauplatz. Mit Regine Heintze, Heike Meyer und Detlef Heintze. Inszenierung: Michael Kliefert/ Detlef Heintze.
- Preise inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl (ermäßigt alkoholfrei) - 0 -
- - - 1 - 2 - 1 - 1661626800 - 1661632200 - - - 2 - 2 - 1 - 1660158000 - 1660163400 - - - 3 - 2 - 2 - 1661194800 - 1661200200 - -
diff --git a/Tests/Functional/Frontend/Fixtures/Database/FilterByTwoLocationsViaFlexform.php b/Tests/Functional/Frontend/Fixtures/Database/FilterByTwoLocationsViaFlexform.php new file mode 100644 index 0000000..a8e61c7 --- /dev/null +++ b/Tests/Functional/Frontend/Fixtures/Database/FilterByTwoLocationsViaFlexform.php @@ -0,0 +1,101 @@ + [ + [ + 'pid' => '1', + 'uid' => '1', + 'CType' => 'list', + 'list_type' => 'events_datelist', + 'header' => 'Kino Events', + 'pi_flexform' => ' + + + + + + 1,2 + + + + + + ', + ], + ], + 'tx_events_domain_model_location' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'name' => 'Theater im Gewölbe', + 'street' => 'Cranach-Haus Markt 11/12', + 'city' => 'Weimar', + 'zip' => '99423', + 'country' => 'Deutschland', + 'longitude' => '11.330248', + 'latitude' => '50.979349', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'name' => 'Künstlergarten Weimar', + 'street' => 'Theaterplatz 4', + 'city' => 'Weimar', + 'zip' => '99423', + 'country' => 'Deutschland', + 'longitude' => '11.3262489', + 'latitude' => '50.9800023', + 'district' => 'Zentrum', + ], + ], + 'tx_events_domain_model_event' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Was hat das Universum mit mir zu tun?', + 'global_id' => 'e_100478529', + 'teaser' => '„WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“ + Ein Abend mit Prof. Dr. Harald Lesch', + 'details' => '„WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“ + Ein Abend mit Prof. Dr. Harald Lesch + Auf den Spuren von Goethes Naturphilosophie ist der Astrophysiker und Wissenschaftsjournalist Prof. Dr. Harald Lesch in Weimar schon mehrmals präsent gewesen. Jetzt hält er einen Vortrag zu keiner geringeren Frage als „Was hat das Universum mit mir zu tun?“ Ob Goethe darauf eine pointierte Antwort eingefallen wäre? Sein Faust wollte die Spur seiner Erdentage nicht in Äonen untergehen sehen. Harald Lesch behauptet: Wir sind und bleiben stets Teil der Äonen - denn „wir sind alle Sternenstaub. Vor einer halben Ewigkeit ist ein Stern explodiert und hat alle Stoffe aus denen wir bestehen hervorgebracht. Und wenn das bei uns geklappt hat, könnte es auch noch woanders passiert sein.“ Erleben Sie einen faszinierenden Mix aus Rednerkunst und virtuoser musikalischer Begleitung. Neben Prof. Dr. Harald Lesch begibt sich der Musiker Hans Raths (Bayon) mit auf die Reise ins theatralische und philosophische Universum. Eine Veranstaltung nicht nur für Science-Fiction-Freaks, sondern für alle Kosmopoliten!', + 'price_info' => 'Preis inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl', + 'location' => '1', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'title' => 'Lotte in Weimar', + 'global_id' => 'e_100453137', + 'teaser' => 'Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann', + 'details' => 'LOTTE IN WEIMAR + Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann + „Welch buchenswertes Ereignis!“, ruft der Kellner Mager aus, als er erfährt, wer da in seinem Gasthaus „Zum Elephanten“ abgestiegen ist: Die berühmte Heldin aus Goethes „Die Leiden des jungen Werthers“, Charlotte Kestner, geborene Buff aus Wetzlar, – das „Urbild“ der Lotte sozusagen! Eine heiter-ironische Abrechnung mit dem Starkult anno 1816 fast am Originalschauplatz. Mit Regine Heintze, Heike Meyer und Detlef Heintze. Inszenierung: Michael Kliefert/ Detlef Heintze.', + 'price_info' => 'Preise inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl (ermäßigt alkoholfrei)', + 'location' => '2', + ], + ], + 'tx_events_domain_model_date' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'event' => '1', + 'start' => '1661626800', + 'end' => '1661632200', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'event' => '1', + 'start' => '1660158000', + 'end' => '1660163400', + ], + [ + 'uid' => '3', + 'pid' => '2', + 'event' => '2', + 'start' => '1661194800', + 'end' => '1661200200', + ], + ], +]; diff --git a/Tests/Functional/Frontend/Fixtures/Database/FilterByTwoLocationsViaFlexform.xml b/Tests/Functional/Frontend/Fixtures/Database/FilterByTwoLocationsViaFlexform.xml deleted file mode 100644 index df5e7ed..0000000 --- a/Tests/Functional/Frontend/Fixtures/Database/FilterByTwoLocationsViaFlexform.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - 1 - 1 - list - events_datelist -
Kino Events
- - - - - - - 1,2 - - - - - - ]]> -
- - - 1 - 2 - Theater im Gewölbe - Cranach-Haus Markt 11/12 - Weimar - 99423 - Deutschland - 11.330248 - 50.979349 - - - 2 - 2 - Künstlergarten Weimar - Theaterplatz 4 - Weimar - 99423 - Deutschland - 11.3262489 - 50.9800023 - Zentrum - - - - 1 - 2 - Was hat das Universum mit mir zu tun? - e_100478529 - „WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“ - Ein Abend mit Prof. Dr. Harald Lesch -
„WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“ - Ein Abend mit Prof. Dr. Harald Lesch - Auf den Spuren von Goethes Naturphilosophie ist der Astrophysiker und Wissenschaftsjournalist Prof. Dr. Harald Lesch in Weimar schon mehrmals präsent gewesen. Jetzt hält er einen Vortrag zu keiner geringeren Frage als „Was hat das Universum mit mir zu tun?“ Ob Goethe darauf eine pointierte Antwort eingefallen wäre? Sein Faust wollte die Spur seiner Erdentage nicht in Äonen untergehen sehen. Harald Lesch behauptet: Wir sind und bleiben stets Teil der Äonen - denn „wir sind alle Sternenstaub. Vor einer halben Ewigkeit ist ein Stern explodiert und hat alle Stoffe aus denen wir bestehen hervorgebracht. Und wenn das bei uns geklappt hat, könnte es auch noch woanders passiert sein.“ Erleben Sie einen faszinierenden Mix aus Rednerkunst und virtuoser musikalischer Begleitung. Neben Prof. Dr. Harald Lesch begibt sich der Musiker Hans Raths (Bayon) mit auf die Reise ins theatralische und philosophische Universum. Eine Veranstaltung nicht nur für Science-Fiction-Freaks, sondern für alle Kosmopoliten!
- Preis inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl - 1 -
- - 2 - 2 - Lotte in Weimar - e_100453137 - Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann -
LOTTE IN WEIMAR - Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann - „Welch buchenswertes Ereignis!“, ruft der Kellner Mager aus, als er erfährt, wer da in seinem Gasthaus „Zum Elephanten“ abgestiegen ist: Die berühmte Heldin aus Goethes „Die Leiden des jungen Werthers“, Charlotte Kestner, geborene Buff aus Wetzlar, – das „Urbild“ der Lotte sozusagen! Eine heiter-ironische Abrechnung mit dem Starkult anno 1816 fast am Originalschauplatz. Mit Regine Heintze, Heike Meyer und Detlef Heintze. Inszenierung: Michael Kliefert/ Detlef Heintze.
- Preise inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl (ermäßigt alkoholfrei) - 2 -
- - - 1 - 2 - 1 - 1661626800 - 1661632200 - - - 2 - 2 - 1 - 1660158000 - 1660163400 - - - 3 - 2 - 2 - 1661194800 - 1661200200 - -
diff --git a/Tests/Functional/Frontend/Fixtures/Database/SiteStructure.csv b/Tests/Functional/Frontend/Fixtures/Database/SiteStructure.csv deleted file mode 100644 index ab41e76..0000000 --- a/Tests/Functional/Frontend/Fixtures/Database/SiteStructure.csv +++ /dev/null @@ -1,4 +0,0 @@ -pages -,uid,pid,title,slug -,1,0,Page 1,/ -,2,1,Storage,/storage diff --git a/Tests/Functional/Frontend/Fixtures/Database/SiteStructure.php b/Tests/Functional/Frontend/Fixtures/Database/SiteStructure.php new file mode 100644 index 0000000..5ba516b --- /dev/null +++ b/Tests/Functional/Frontend/Fixtures/Database/SiteStructure.php @@ -0,0 +1,18 @@ + [ + [ + 'uid' => 1, + 'pid' => 0, + 'title' => 'Page 1', + 'slug' => '', + ], + [ + 'uid' => 2, + 'pid' => 1, + 'title' => 'Storage', + 'slug' => '/storage', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/AbstractTest.php b/Tests/Functional/Import/DestinationDataTest/AbstractTest.php index 3fc596b..3130eb2 100644 --- a/Tests/Functional/Import/DestinationDataTest/AbstractTest.php +++ b/Tests/Functional/Import/DestinationDataTest/AbstractTest.php @@ -2,6 +2,7 @@ namespace Wrm\Events\Tests\Functional\Import\DestinationDataTest; +use Codappix\Typo3PhpDatasets\TestingFramework; use GuzzleHttp\ClientInterface as GuzzleClientInterface; use Psr\Http\Client\ClientInterface; use Symfony\Component\Console\Command\Command; @@ -16,6 +17,8 @@ use Wrm\Events\Tests\ClientFactory; abstract class AbstractTest extends FunctionalTestCase { + use TestingFramework; + protected $coreExtensionsToLoad = [ 'filelist', ]; @@ -28,7 +31,7 @@ abstract class AbstractTest extends FunctionalTestCase { parent::setUp(); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/Structure.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/Structure.php'); $this->setUpBackendUserFromFixture(1); $languageServiceFactory = $this->getContainer()->get(LanguageServiceFactory::class); diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/DefaultImportConfiguration.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/DefaultImportConfiguration.php new file mode 100644 index 0000000..aa1cdca --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/DefaultImportConfiguration.php @@ -0,0 +1,15 @@ + [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example import configuration', + 'storage_pid' => '2', + 'files_folder' => '1:/staedte/beispielstadt/events/', + 'region' => '1', + 'rest_experience' => 'beispielstadt', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/FeaturesImportConfiguration.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/FeaturesImportConfiguration.php new file mode 100644 index 0000000..adf7472 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/FeaturesImportConfiguration.php @@ -0,0 +1,48 @@ + [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example for test', + 'storage_pid' => '2', + 'features_pid' => '3', + 'features_parent' => '4', + ], + ], + 'pages' => [ + [ + 'pid' => '2', + 'uid' => '3', + 'title' => 'Features Storage', + 'doktype' => '254', + ], + ], + 'sys_category' => [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Top Category', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'title' => 'Event Category Parent', + 'parent' => '1', + ], + [ + 'uid' => '4', + 'pid' => '2', + 'title' => 'Event Feature Parent', + 'parent' => '1', + ], + [ + 'uid' => '5', + 'pid' => '3', + 'title' => 'vorhandenes Feature', + 'parent' => '4', + 'hidden' => '0', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/FirstDateOfRecurringDatesImportConfiguration.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/FirstDateOfRecurringDatesImportConfiguration.php new file mode 100644 index 0000000..99c92c2 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/FirstDateOfRecurringDatesImportConfiguration.php @@ -0,0 +1,20 @@ + [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example for test', + 'storage_pid' => '2', + ], + ], + 'pages' => [ + [ + 'pid' => '2', + 'uid' => '3', + 'title' => 'Features Storage', + 'doktype' => '254', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/MinimalImportConfiguration.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/MinimalImportConfiguration.php new file mode 100644 index 0000000..25f5651 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/MinimalImportConfiguration.php @@ -0,0 +1,13 @@ + [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example import configuration', + 'storage_pid' => '2', + 'rest_experience' => 'beispielstadt', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SecondImportConfiguration.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SecondImportConfiguration.php new file mode 100644 index 0000000..56a7f17 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SecondImportConfiguration.php @@ -0,0 +1,26 @@ + [ + [ + 'uid' => '2', + 'pid' => '2', + 'title' => 'Second Example import configuration', + 'storage_pid' => '3', + 'files_folder' => '1:/staedte/anderestadt/events/', + 'categories_pid' => '2', + 'category_parent' => '2', + 'region' => '1', + 'rest_experience' => 'anderestadt', + 'rest_search_query' => 'name:"Beispiel2"', + ], + ], + 'pages' => [ + [ + 'pid' => '1', + 'uid' => '3', + 'title' => 'Storage', + 'doktype' => '254', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleCategory.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleCategory.php new file mode 100644 index 0000000..e407300 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleCategory.php @@ -0,0 +1,17 @@ + [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Top Category', + ], + [ + 'uid' => '2', + 'pid' => '2', + 'title' => 'Event Category Parent', + 'parent' => '1', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfiguration.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfiguration.php new file mode 100644 index 0000000..31c1a13 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfiguration.php @@ -0,0 +1,18 @@ + [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example import configuration', + 'storage_pid' => '2', + 'files_folder' => '1:/staedte/beispielstadt/events/', + 'categories_pid' => '2', + 'category_parent' => '2', + 'region' => '1', + 'rest_experience' => 'beispielstadt', + 'rest_search_query' => 'name:"Beispiel"', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfigurationWithCategories.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfigurationWithCategories.php new file mode 100644 index 0000000..1896607 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfigurationWithCategories.php @@ -0,0 +1,17 @@ + [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example import configuration', + 'storage_pid' => '2', + 'files_folder' => '1:/staedte/beispielstadt/events/', + 'categories_pid' => '2', + 'category_parent' => '2', + 'region' => '1', + 'rest_experience' => 'beispielstadt', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfigurationWithoutRegion.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfigurationWithoutRegion.php new file mode 100644 index 0000000..d4938e2 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleImportConfigurationWithoutRegion.php @@ -0,0 +1,14 @@ + [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example import configuration', + 'storage_pid' => '2', + 'files_folder' => '1:/staedte/beispielstadt/events/', + 'rest_experience' => 'beispielstadt', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleRegion.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleRegion.php new file mode 100644 index 0000000..4da5182 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/SingleRegion.php @@ -0,0 +1,11 @@ + [ + [ + 'uid' => '1', + 'pid' => '2', + 'title' => 'Example Region', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/Structure.php b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/Structure.php new file mode 100644 index 0000000..27b5b63 --- /dev/null +++ b/Tests/Functional/Import/DestinationDataTest/Fixtures/Database/Structure.php @@ -0,0 +1,19 @@ + [ + [ + 'pid' => '0', + 'uid' => '1', + 'title' => 'Root page', + 'slug' => '1', + 'is_siteroot' => '1', + ], + [ + 'pid' => '1', + 'uid' => '2', + 'title' => 'Storage', + 'doktype' => '254', + ], + ], +]; diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml deleted file mode 100644 index af1a822..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - 1 - 2 - Example import configuration - - 2 - 1:/staedte/beispielstadt/events/ - - 1 - - beispielstadt - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/FeaturesImportConfiguration.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/FeaturesImportConfiguration.xml deleted file mode 100644 index 2fcbaaa..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/FeaturesImportConfiguration.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - 1 - 2 - Example for test - 2 - 3 - 4 - - - - 2 - 3 - Features Storage - 254 - - - - 1 - 2 - Top Category - - - 2 - 2 - Event Category Parent - 1 - - - 4 - 2 - Event Feature Parent - 1 - - - 5 - 3 - vorhandenes Feature - 4 - 0 - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/FirstDateOfRecurringDatesImportConfiguration.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/FirstDateOfRecurringDatesImportConfiguration.xml deleted file mode 100644 index c752e0c..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/FirstDateOfRecurringDatesImportConfiguration.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - 1 - 2 - Example for test - 2 - - - - 2 - 3 - Features Storage - 254 - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/MinimalImportConfiguration.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/MinimalImportConfiguration.xml deleted file mode 100644 index 752121f..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/MinimalImportConfiguration.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - 1 - 2 - Example import configuration - - 2 - - beispielstadt - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/SecondImportConfiguration.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/SecondImportConfiguration.xml deleted file mode 100644 index b0c3a41..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/SecondImportConfiguration.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - 2 - 2 - Second Example import configuration - - 3 - 1:/staedte/anderestadt/events/ - 2 - 2 - - 1 - - anderestadt - name:"Beispiel2" - - - - 1 - 3 - Storage - 254 - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml deleted file mode 100644 index ca1c635..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - 1 - 2 - Top Category - - - 2 - 2 - Event Category Parent - 1 - - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfiguration.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfiguration.xml deleted file mode 100644 index 814f478..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfiguration.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - 1 - 2 - Example import configuration - - 2 - 1:/staedte/beispielstadt/events/ - 2 - 2 - - 1 - - beispielstadt - name:"Beispiel" - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithCategories.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithCategories.xml deleted file mode 100644 index 75512cf..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithCategories.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - 1 - 2 - Example import configuration - - 2 - 1:/staedte/beispielstadt/events/ - 2 - 2 - - 1 - - beispielstadt - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithoutRegion.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithoutRegion.xml deleted file mode 100644 index b564772..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithoutRegion.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - 1 - 2 - Example import configuration - - 2 - 1:/staedte/beispielstadt/events/ - - beispielstadt - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml deleted file mode 100644 index 414b803..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - 1 - 2 - Example Region - - - diff --git a/Tests/Functional/Import/DestinationDataTest/Fixtures/Structure.xml b/Tests/Functional/Import/DestinationDataTest/Fixtures/Structure.xml deleted file mode 100644 index 6088b5a..0000000 --- a/Tests/Functional/Import/DestinationDataTest/Fixtures/Structure.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - 0 - 1 - Root page - 1 - 1 - - - 1 - 2 - Storage - 254 - - diff --git a/Tests/Functional/Import/DestinationDataTest/ImportCleansTransientFilesTest.php b/Tests/Functional/Import/DestinationDataTest/ImportCleansTransientFilesTest.php index 6af2260..563f6bc 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportCleansTransientFilesTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportCleansTransientFilesTest.php @@ -20,7 +20,7 @@ class ImportCleansTransientFilesTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportDoesNotUseUploadsFolderTest.php b/Tests/Functional/Import/DestinationDataTest/ImportDoesNotUseUploadsFolderTest.php index e7a338f..59e1b72 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportDoesNotUseUploadsFolderTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportDoesNotUseUploadsFolderTest.php @@ -20,7 +20,7 @@ class ImportDoesNotUseUploadsFolderTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportDoesntBreakWithLongFileTitleTest.php b/Tests/Functional/Import/DestinationDataTest/ImportDoesntBreakWithLongFileTitleTest.php index 4a89ff7..09799da 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportDoesntBreakWithLongFileTitleTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportDoesntBreakWithLongFileTitleTest.php @@ -16,9 +16,9 @@ class ImportDoesntBreakWithLongFileTitleTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithCategories.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfigurationWithCategories.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportDoesntEndUpInEndlessDateCreationTest.php b/Tests/Functional/Import/DestinationDataTest/ImportDoesntEndUpInEndlessDateCreationTest.php index d990047..1411714 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportDoesntEndUpInEndlessDateCreationTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportDoesntEndUpInEndlessDateCreationTest.php @@ -19,9 +19,9 @@ class ImportDoesntEndUpInEndlessDateCreationTest extends AbstractTest GeneralUtility::mkdir_deep($fileImportPath); $this->setDateAspect(new \DateTimeImmutable('2022-07-01'), new \DateTimeZone('Europe/Berlin')); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsAllConfigurationTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsAllConfigurationTest.php index 34f9d94..e0ec73a 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsAllConfigurationTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsAllConfigurationTest.php @@ -26,10 +26,10 @@ class ImportsAllConfigurationTest extends AbstractTest $fileImportPath2 = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration2; GeneralUtility::mkdir_deep($fileImportPath2); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfiguration.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SecondImportConfiguration.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfiguration.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SecondImportConfiguration.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsExampleAsExpectedTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsExampleAsExpectedTest.php index e481798..c3f17ce 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsExampleAsExpectedTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsExampleAsExpectedTest.php @@ -21,9 +21,9 @@ class ImportsExampleAsExpectedTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithCategories.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfigurationWithCategories.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsFeaturesTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsFeaturesTest.php index 0f9525b..e452a41 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsFeaturesTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsFeaturesTest.php @@ -20,7 +20,7 @@ class ImportsFeaturesTest extends AbstractTest $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', ]); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/FeaturesImportConfiguration.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/FeaturesImportConfiguration.php'); $this->setUpResponses([ new Response(200, [], file_get_contents(__DIR__ . '/Fixtures/ResponseWithFeatures.json') ?: ''), ]); diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsFirstDateOfDatesTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsFirstDateOfDatesTest.php index 25128fd..2f9aa1a 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsFirstDateOfDatesTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsFirstDateOfDatesTest.php @@ -17,7 +17,7 @@ class ImportsFirstDateOfDatesTest extends AbstractTest $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', ]); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/FirstDateOfRecurringDatesImportConfiguration.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/FirstDateOfRecurringDatesImportConfiguration.php'); $this->setDateAspect(new \DateTimeImmutable('2022-07-13', new \DateTimeZone('UTC'))); } diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsSingleConfigurationTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsSingleConfigurationTest.php index 91ae47f..329b959 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsSingleConfigurationTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsSingleConfigurationTest.php @@ -22,9 +22,9 @@ class ImportsSingleConfigurationTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfiguration.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfiguration.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsTicketsTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsTicketsTest.php index 1ce0e34..bf1c7f4 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsTicketsTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsTicketsTest.php @@ -21,9 +21,9 @@ class ImportsTicketsTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsWithConfiguredRepeatUntilTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsWithConfiguredRepeatUntilTest.php index 36b3bc6..1e3730e 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsWithConfiguredRepeatUntilTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsWithConfiguredRepeatUntilTest.php @@ -14,7 +14,7 @@ class ImportsWithConfiguredRepeatUntilTest extends AbstractTest { parent::setUp(); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/MinimalImportConfiguration.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/MinimalImportConfiguration.php'); $this->setDateAspect(new \DateTimeImmutable('2022-07-13', new \DateTimeZone('UTC'))); } diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsWithLocationsTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsWithLocationsTest.php index 6e5226c..62f2726 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsWithLocationsTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsWithLocationsTest.php @@ -19,7 +19,7 @@ class ImportsWithLocationsTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsWithoutCategoryIfNotProvidedTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsWithoutCategoryIfNotProvidedTest.php index f2bd97e..090789f 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsWithoutCategoryIfNotProvidedTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsWithoutCategoryIfNotProvidedTest.php @@ -19,8 +19,8 @@ class ImportsWithoutCategoryIfNotProvidedTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsWithoutLocationTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsWithoutLocationTest.php index 0a88be4..a9b8f74 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsWithoutLocationTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsWithoutLocationTest.php @@ -19,7 +19,7 @@ class ImportsWithoutLocationTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithoutRegion.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfigurationWithoutRegion.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license', diff --git a/Tests/Functional/Import/DestinationDataTest/ImportsWithoutRegionIfNotProvidedTest.php b/Tests/Functional/Import/DestinationDataTest/ImportsWithoutRegionIfNotProvidedTest.php index 4f115f9..682b0da 100644 --- a/Tests/Functional/Import/DestinationDataTest/ImportsWithoutRegionIfNotProvidedTest.php +++ b/Tests/Functional/Import/DestinationDataTest/ImportsWithoutRegionIfNotProvidedTest.php @@ -19,8 +19,8 @@ class ImportsWithoutRegionIfNotProvidedTest extends AbstractTest $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; GeneralUtility::mkdir_deep($fileImportPath); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithoutRegion.xml'); - $this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfigurationWithoutRegion.php'); + $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php'); $this->setUpConfiguration([ 'restUrl = https://example.com/some-path/', 'license = example-license',