Migrate all database fixtures (#10)

We switched to PHPDataSets already but didn't migrate all usages.
This commit now migrates all usages left behind.
This commit is contained in:
Daniel Siepmann 2023-05-15 11:58:19 +02:00 committed by GitHub
parent cc2e8213bc
commit 53ee309768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 1076 additions and 984 deletions

View file

@ -1,224 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<pages>
<pid>0</pid>
<uid>1</uid>
<title>Root page</title>
<slug>1</slug>
</pages>
<pages>
<pid>1</pid>
<uid>2</uid>
<title>Storage</title>
<doktype>254</doktype>
</pages>
<sys_category>
<uid>1</uid>
<pid>2</pid>
<title>Example Category 1</title>
</sys_category>
<sys_category>
<uid>2</uid>
<pid>2</pid>
<title>Example Category 2</title>
</sys_category>
<sys_category_record_mm>
<uid_local>1</uid_local>
<uid_foreign>1</uid_foreign>
<tablenames>tx_events_domain_model_event</tablenames>
</sys_category_record_mm>
<sys_category_record_mm>
<uid_local>2</uid_local>
<uid_foreign>1</uid_foreign>
<tablenames>tx_events_domain_model_event</tablenames>
</sys_category_record_mm>
<sys_file_storage>
<uid>1</uid>
<pid>0</pid>
<tstamp>1423209858</tstamp>
<crdate>1370878372</crdate>
<cruser_id>0</cruser_id>
<deleted>0</deleted>
<name>fileadmin/ (auto-created)</name>
<description>This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3.</description>
<driver>Local</driver>
<configuration><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
<data>
<sheet index="sDEF">
<language index="lDEF">
<field index="basePath">
<value index="vDEF">fileadmin/</value>
</field>
<field index="pathType">
<value index="vDEF">relative</value>
</field>
<field index="caseSensitive">
<value index="vDEF">1</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>]]></configuration>
<is_browsable>1</is_browsable>
<is_public>1</is_public>
<is_writable>1</is_writable>
<is_online>1</is_online>
<processingfolder>_processed_</processingfolder>
<is_default>1</is_default>
<auto_extract_metadata>1</auto_extract_metadata>
</sys_file_storage>
<sys_file>
<uid>1</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<type>2</type>
<storage>1</storage>
<identifier>/user_uploads/example-for-event.gif</identifier>
<extension>gif</extension>
<mime_type>image/gif</mime_type>
<name>ext_icon.gif</name>
<sha1>359ae0fb420fe8afe1a8b8bc5e46d75090a826b9</sha1>
<size>637</size>
<creation_date>1370877201</creation_date>
<modification_date>1369407629</modification_date>
<last_indexed>0</last_indexed>
<missing>0</missing>
<metadata>0</metadata>
<identifier_hash>475768e491580fb8b74ed36c2b1aaf619ca5e11d</identifier_hash>
<folder_hash>b4ab666a114d9905a50606d1837b74d952dfd90f</folder_hash>
</sys_file>
<sys_file>
<uid>2</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<type>2</type>
<storage>1</storage>
<identifier>/user_uploads/example-for-partner.gif</identifier>
<extension>gif</extension>
<mime_type>image/gif</mime_type>
<name>ext_icon.gif</name>
<sha1>359ae0fb420fe8afe1a8b8bc5e46d75090a826b9</sha1>
<size>637</size>
<creation_date>1370877201</creation_date>
<modification_date>1369407629</modification_date>
<last_indexed>0</last_indexed>
<missing>0</missing>
<metadata>0</metadata>
<identifier_hash>475768e491580fb8b74ed36c2b1aaf619ca5e11d</identifier_hash>
<folder_hash>b4ab666a114d9905a50606d1837b74d952dfd90f</folder_hash>
</sys_file>
<sys_file_metadata>
<uid>1</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<crdate>1371467047</crdate>
<cruser_id>1</cruser_id>
<file>1</file>
</sys_file_metadata>
<sys_file_metadata>
<uid>2</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<crdate>1371467047</crdate>
<cruser_id>1</cruser_id>
<file>2</file>
</sys_file_metadata>
<sys_file_reference>
<uid>1</uid>
<pid>2</pid>
<tstamp>1373537480</tstamp>
<crdate>1371484347</crdate>
<cruser_id>1</cruser_id>
<deleted>0</deleted>
<hidden>0</hidden>
<sys_language_uid>0</sys_language_uid>
<uid_local>1</uid_local>
<uid_foreign>1</uid_foreign>
<tablenames>tx_events_domain_model_event</tablenames>
<fieldname>images</fieldname>
<sorting_foreign>1</sorting_foreign>
<table_local>sys_file</table_local>
</sys_file_reference>
<sys_file_reference>
<uid>2</uid>
<pid>2</pid>
<tstamp>1373537480</tstamp>
<crdate>1371484347</crdate>
<cruser_id>1</cruser_id>
<deleted>0</deleted>
<hidden>0</hidden>
<sys_language_uid>0</sys_language_uid>
<uid_local>2</uid_local>
<uid_foreign>1</uid_foreign>
<tablenames>tx_events_domain_model_partner</tablenames>
<fieldname>images</fieldname>
<sorting_foreign>1</sorting_foreign>
<table_local>sys_file</table_local>
</sys_file_reference>
<tx_events_domain_model_region>
<uid>1</uid>
<pid>2</pid>
<title>Example Region</title>
</tx_events_domain_model_region>
<tx_events_domain_model_partner>
<uid>1</uid>
<pid>2</pid>
<title>Example Partner</title>
<link>https://example.com</link>
<images>1</images>
</tx_events_domain_model_partner>
<tx_events_domain_model_organizer>
<uid>1</uid>
<pid>2</pid>
<name>Example Organizer</name>
<street>Example Street 17</street>
<district></district>
<city>Example Town</city>
<zip>00101</zip>
<phone>+49 2161 56 36 27 37 48 94 28</phone>
<web>https://example.com</web>
<email>someone@example.com</email>
</tx_events_domain_model_organizer>
<tx_events_domain_model_event>
<uid>1</uid>
<pid>2</pid>
<title>Example Event</title>
<subtitle>Some further info about event</subtitle>
<global_id>5540-34</global_id>
<slug>5540-34</slug>
<organizer>1</organizer>
<partner>1</partner>
<region>1</region>
<images>0</images>
<categories>2</categories>
</tx_events_domain_model_event>
<tx_events_domain_model_date>
<uid>1</uid>
<pid>2</pid>
<event>1</event>
<start>4101372000</start>
<end>4101377400</end>
<canceled>no</canceled>
</tx_events_domain_model_date>
<tx_events_domain_model_date>
<uid>2</uid>
<pid>2</pid>
<event>1</event>
<start>4101372000</start>
<end>4101377400</end>
<canceled>no</canceled>
</tx_events_domain_model_date>
</dataset>

View file

@ -0,0 +1,238 @@
<?php
return [
'pages' => [
[
'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' => '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
<data>
<sheet index="sDEF">
<language index="lDEF">
<field index="basePath">
<value index="vDEF">fileadmin/</value>
</field>
<field index="pathType">
<value index="vDEF">relative</value>
</field>
<field index="caseSensitive">
<value index="vDEF">1</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>
',
'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',
],
],
];

View file

@ -1,341 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<pages>
<pid>0</pid>
<uid>1</uid>
<title>Root page</title>
<slug>1</slug>
</pages>
<pages>
<pid>1</pid>
<uid>2</uid>
<title>Storage</title>
<doktype>254</doktype>
</pages>
<sys_category>
<uid>1</uid>
<pid>2</pid>
<title>Example Category 1</title>
</sys_category>
<sys_category>
<uid>2</uid>
<pid>2</pid>
<title>Example Category 2</title>
</sys_category>
<sys_category_record_mm>
<uid_local>1</uid_local>
<uid_foreign>1</uid_foreign>
<tablenames>tx_events_domain_model_event</tablenames>
</sys_category_record_mm>
<sys_category_record_mm>
<uid_local>2</uid_local>
<uid_foreign>1</uid_foreign>
<tablenames>tx_events_domain_model_event</tablenames>
</sys_category_record_mm>
<sys_file_storage>
<uid>1</uid>
<pid>0</pid>
<tstamp>1423209858</tstamp>
<crdate>1370878372</crdate>
<cruser_id>0</cruser_id>
<deleted>0</deleted>
<name>fileadmin/ (auto-created)</name>
<description>This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3.</description>
<driver>Local</driver>
<configuration><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
<data>
<sheet index="sDEF">
<language index="lDEF">
<field index="basePath">
<value index="vDEF">fileadmin/</value>
</field>
<field index="pathType">
<value index="vDEF">relative</value>
</field>
<field index="caseSensitive">
<value index="vDEF">1</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>]]></configuration>
<is_browsable>1</is_browsable>
<is_public>1</is_public>
<is_writable>1</is_writable>
<is_online>1</is_online>
<processingfolder>_processed_</processingfolder>
<is_default>1</is_default>
<auto_extract_metadata>1</auto_extract_metadata>
</sys_file_storage>
<sys_file>
<uid>1</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<type>2</type>
<storage>1</storage>
<identifier>/user_uploads/example-for-event.gif</identifier>
<extension>gif</extension>
<mime_type>image/gif</mime_type>
<name>ext_icon.gif</name>
<sha1>359ae0fb420fe8afe1a8b8bc5e46d75090a826b9</sha1>
<size>637</size>
<creation_date>1370877201</creation_date>
<modification_date>1369407629</modification_date>
<last_indexed>0</last_indexed>
<missing>0</missing>
<metadata>0</metadata>
<identifier_hash>475768e491580fb8b74ed36c2b1aaf619ca5e11d</identifier_hash>
<folder_hash>b4ab666a114d9905a50606d1837b74d952dfd90f</folder_hash>
</sys_file>
<sys_file>
<uid>2</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<type>2</type>
<storage>1</storage>
<identifier>/user_uploads/example-for-partner.gif</identifier>
<extension>gif</extension>
<mime_type>image/gif</mime_type>
<name>ext_icon.gif</name>
<sha1>359ae0fb420fe8afe1a8b8bc5e46d75090a826b9</sha1>
<size>637</size>
<creation_date>1370877201</creation_date>
<modification_date>1369407629</modification_date>
<last_indexed>0</last_indexed>
<missing>0</missing>
<metadata>0</metadata>
<identifier_hash>475768e491580fb8b74ed36c2b1aaf619ca5e11d</identifier_hash>
<folder_hash>b4ab666a114d9905a50606d1837b74d952dfd90f</folder_hash>
</sys_file>
<sys_file>
<uid>3</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<type>2</type>
<storage>1</storage>
<identifier>/user_uploads/example-for-future-event.gif</identifier>
<extension>gif</extension>
<mime_type>image/gif</mime_type>
<name>ext_icon.gif</name>
<sha1>359ae0fb420fe8afe1a8b8bc5e46d75090a826b9</sha1>
<size>637</size>
<creation_date>1370877201</creation_date>
<modification_date>1369407629</modification_date>
<last_indexed>0</last_indexed>
<missing>0</missing>
<metadata>0</metadata>
<identifier_hash>475768e491580fb8b74ed36c2b1aaf619ca5e11d</identifier_hash>
<folder_hash>b4ab666a114d9905a50606d1837b74d952dfd90f</folder_hash>
</sys_file>
<sys_file>
<uid>4</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<type>2</type>
<storage>1</storage>
<identifier>/user_uploads/example-to-keep.gif</identifier>
<extension>gif</extension>
<mime_type>image/gif</mime_type>
<name>example-to-keep.gif</name>
<sha1>359ae0fb420fe8afe1a8b8bc5e46d75090a826b9</sha1>
<size>637</size>
<creation_date>1370877201</creation_date>
<modification_date>1369407629</modification_date>
<last_indexed>0</last_indexed>
<missing>0</missing>
<metadata>0</metadata>
<identifier_hash>475768e491580fb8b74ed36c2b1aaf619ca5e11d</identifier_hash>
<folder_hash>b4ab666a114d9905a50606d1837b74d952dfd90f</folder_hash>
</sys_file>
<sys_file_metadata>
<uid>1</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<crdate>1371467047</crdate>
<cruser_id>1</cruser_id>
<file>1</file>
</sys_file_metadata>
<sys_file_metadata>
<uid>2</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<crdate>1371467047</crdate>
<cruser_id>1</cruser_id>
<file>2</file>
</sys_file_metadata>
<sys_file_metadata>
<uid>3</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<crdate>1371467047</crdate>
<cruser_id>1</cruser_id>
<file>3</file>
</sys_file_metadata>
<sys_file_metadata>
<uid>4</uid>
<pid>0</pid>
<tstamp>1371467047</tstamp>
<crdate>1371467047</crdate>
<cruser_id>1</cruser_id>
<file>4</file>
</sys_file_metadata>
<sys_file_reference>
<uid>1</uid>
<pid>2</pid>
<tstamp>1373537480</tstamp>
<crdate>1371484347</crdate>
<cruser_id>1</cruser_id>
<deleted>0</deleted>
<hidden>0</hidden>
<sys_language_uid>0</sys_language_uid>
<uid_local>1</uid_local>
<uid_foreign>1</uid_foreign>
<tablenames>tx_events_domain_model_event</tablenames>
<fieldname>images</fieldname>
<sorting_foreign>1</sorting_foreign>
<table_local>sys_file</table_local>
</sys_file_reference>
<sys_file_reference>
<uid>2</uid>
<pid>2</pid>
<tstamp>1373537480</tstamp>
<crdate>1371484347</crdate>
<cruser_id>1</cruser_id>
<deleted>0</deleted>
<hidden>0</hidden>
<sys_language_uid>0</sys_language_uid>
<uid_local>2</uid_local>
<uid_foreign>1</uid_foreign>
<tablenames>tx_events_domain_model_partner</tablenames>
<fieldname>images</fieldname>
<sorting_foreign>1</sorting_foreign>
<table_local>sys_file</table_local>
</sys_file_reference>
<sys_file_reference>
<uid>3</uid>
<pid>2</pid>
<tstamp>1373537480</tstamp>
<crdate>1371484347</crdate>
<cruser_id>1</cruser_id>
<deleted>0</deleted>
<hidden>0</hidden>
<sys_language_uid>0</sys_language_uid>
<uid_local>3</uid_local>
<uid_foreign>2</uid_foreign>
<tablenames>tx_events_domain_model_event</tablenames>
<fieldname>images</fieldname>
<sorting_foreign>1</sorting_foreign>
<table_local>sys_file</table_local>
</sys_file_reference>
<sys_file_reference>
<uid>4</uid>
<pid>2</pid>
<tstamp>1373537480</tstamp>
<crdate>1371484347</crdate>
<cruser_id>1</cruser_id>
<deleted>1</deleted>
<hidden>0</hidden>
<sys_language_uid>0</sys_language_uid>
<uid_local>4</uid_local>
<uid_foreign>1</uid_foreign>
<tablenames>tt_content</tablenames>
<fieldname>images</fieldname>
<sorting_foreign>1</sorting_foreign>
<table_local>sys_file</table_local>
</sys_file_reference>
<tx_events_domain_model_region>
<uid>1</uid>
<pid>2</pid>
<title>Example Region</title>
</tx_events_domain_model_region>
<tx_events_domain_model_partner>
<uid>1</uid>
<pid>2</pid>
<title>Example Partner</title>
<link>https://example.com</link>
<images>1</images>
</tx_events_domain_model_partner>
<tx_events_domain_model_organizer>
<uid>1</uid>
<pid>2</pid>
<name>Example Organizer</name>
<street>Example Street 17</street>
<district></district>
<city>Example Town</city>
<zip>00101</zip>
<phone>+49 2161 56 36 27 37 48 94 28</phone>
<web>https://example.com</web>
<email>someone@example.com</email>
</tx_events_domain_model_organizer>
<tx_events_domain_model_event>
<uid>1</uid>
<pid>2</pid>
<title>Example Event</title>
<subtitle>Some further info about event</subtitle>
<global_id>5540-34</global_id>
<slug>5540-34</slug>
<organizer>1</organizer>
<partner>1</partner>
<region>1</region>
<images>0</images>
<categories>2</categories>
</tx_events_domain_model_event>
<tx_events_domain_model_date>
<uid>1</uid>
<pid>2</pid>
<event>1</event>
<start>0</start>
<end>10</end>
<canceled>no</canceled>
</tx_events_domain_model_date>
<tx_events_domain_model_event>
<uid>2</uid>
<pid>2</pid>
<title>Example Future Event</title>
<subtitle>Some further info about event</subtitle>
<global_id>5540-33</global_id>
<slug>5540-33</slug>
<organizer>2</organizer>
<partner>1</partner>
<region>1</region>
<images>0</images>
<categories>1</categories>
</tx_events_domain_model_event>
<tx_events_domain_model_date>
<uid>3</uid>
<pid>2</pid>
<event>2</event>
<start>9999999998</start>
<end>9999999999</end>
<canceled>no</canceled>
</tx_events_domain_model_date>
<tx_events_domain_model_organizer>
<uid>2</uid>
<pid>2</pid>
<name>Example Organizer for future event</name>
<street>Example Street 17</street>
<district></district>
<city>Example Town</city>
<zip>00101</zip>
<phone>+49 2161 56 36 27 37 48 94 28</phone>
<web>https://example.com</web>
<email>someone@example.com</email>
</tx_events_domain_model_organizer>
<sys_category_record_mm>
<uid_local>2</uid_local>
<uid_foreign>2</uid_foreign>
<tablenames>tx_events_domain_model_event</tablenames>
</sys_category_record_mm>
</dataset>

View file

@ -0,0 +1,356 @@
<?php
return [
'pages' => [
[
'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' => '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
<data>
<sheet index="sDEF">
<language index="lDEF">
<field index="basePath">
<value index="vDEF">fileadmin/</value>
</field>
<field index="pathType">
<value index="vDEF">relative</value>
</field>
<field index="caseSensitive">
<value index="vDEF">1</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>
',
'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',
],
],
];

View file

@ -2,6 +2,7 @@
namespace Wrm\Events\Tests\Functional\Cleanup; namespace Wrm\Events\Tests\Functional\Cleanup;
use Codappix\Typo3PhpDatasets\TestingFramework;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Tester\CommandTester;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
@ -13,6 +14,8 @@ use Wrm\Events\Command\RemoveAllCommand;
*/ */
class RemoveAllTest extends FunctionalTestCase class RemoveAllTest extends FunctionalTestCase
{ {
use TestingFramework;
protected $testExtensionsToLoad = [ protected $testExtensionsToLoad = [
'typo3conf/ext/events', 'typo3conf/ext/events',
]; ];
@ -33,7 +36,7 @@ class RemoveAllTest extends FunctionalTestCase
*/ */
public function removesAllData(): void 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); $subject = $this->getContainer()->get(RemoveAllCommand::class);
self::assertInstanceOf(Command::class, $subject); self::assertInstanceOf(Command::class, $subject);

View file

@ -2,6 +2,7 @@
namespace Wrm\Events\Tests\Functional\Cleanup; namespace Wrm\Events\Tests\Functional\Cleanup;
use Codappix\Typo3PhpDatasets\TestingFramework;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Tester\CommandTester;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
@ -13,6 +14,8 @@ use Wrm\Events\Command\RemovePastCommand;
*/ */
class RemovePastTest extends FunctionalTestCase class RemovePastTest extends FunctionalTestCase
{ {
use TestingFramework;
protected $testExtensionsToLoad = [ protected $testExtensionsToLoad = [
'typo3conf/ext/events', 'typo3conf/ext/events',
]; ];
@ -33,7 +36,7 @@ class RemovePastTest extends FunctionalTestCase
*/ */
public function removesPastData(): void 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); $subject = $this->getContainer()->get(RemovePastCommand::class);
self::assertInstanceOf(Command::class, $subject); self::assertInstanceOf(Command::class, $subject);

View file

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace Wrm\Events\Tests\Functional\Frontend; namespace Wrm\Events\Tests\Functional\Frontend;
use Codappix\Typo3PhpDatasets\PhpDataSet; use Codappix\Typo3PhpDatasets\PhpDataSet;
use Codappix\Typo3PhpDatasets\TestingFramework;
use DateTimeImmutable; use DateTimeImmutable;
use DateTimeZone; use DateTimeZone;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
@ -35,6 +36,8 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
*/ */
class CacheTest extends FunctionalTestCase class CacheTest extends FunctionalTestCase
{ {
use TestingFramework;
protected $testExtensionsToLoad = [ protected $testExtensionsToLoad = [
'typo3conf/ext/events', 'typo3conf/ext/events',
'typo3conf/ext/events/Tests/Functional/Frontend/Fixtures/Extensions/example', 'typo3conf/ext/events/Tests/Functional/Frontend/Fixtures/Extensions/example',
@ -52,7 +55,7 @@ class CacheTest extends FunctionalTestCase
{ {
parent::setUp(); parent::setUp();
$this->importCSVDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.csv'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.php');
(new PhpDataSet())->import(['tt_content' => [[ (new PhpDataSet())->import(['tt_content' => [[
'uid' => '1', 'uid' => '1',
'pid' => '1', 'pid' => '1',

View file

@ -23,6 +23,7 @@ declare(strict_types=1);
namespace Wrm\Events\Tests\Functional\Frontend; namespace Wrm\Events\Tests\Functional\Frontend;
use Codappix\Typo3PhpDatasets\TestingFramework;
use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest;
use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
use Wrm\Events\Frontend\Daest; use Wrm\Events\Frontend\Daest;
@ -32,6 +33,8 @@ use Wrm\Events\Frontend\Daest;
*/ */
class DatesTest extends FunctionalTestCase class DatesTest extends FunctionalTestCase
{ {
use TestingFramework;
protected $testExtensionsToLoad = [ protected $testExtensionsToLoad = [
'typo3conf/ext/events', 'typo3conf/ext/events',
]; ];
@ -48,7 +51,7 @@ class DatesTest extends FunctionalTestCase
{ {
parent::setUp(); parent::setUp();
$this->importCSVDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.csv'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.php');
$this->setUpFrontendRootPage(1, [ $this->setUpFrontendRootPage(1, [
'constants' => [ 'constants' => [
'EXT:events/Configuration/TypoScript/constants.typoscript', 'EXT:events/Configuration/TypoScript/constants.typoscript',

View file

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace Wrm\Events\Tests\Functional\Frontend; namespace Wrm\Events\Tests\Functional\Frontend;
use Codappix\Typo3PhpDatasets\TestingFramework;
use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest;
use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
@ -13,6 +14,8 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
*/ */
class FilterTest extends FunctionalTestCase class FilterTest extends FunctionalTestCase
{ {
use TestingFramework;
protected $testExtensionsToLoad = [ protected $testExtensionsToLoad = [
'typo3conf/ext/events', 'typo3conf/ext/events',
]; ];
@ -29,7 +32,7 @@ class FilterTest extends FunctionalTestCase
{ {
parent::setUp(); parent::setUp();
$this->importCSVDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.csv'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.php');
$this->setUpFrontendRootPage(1, [ $this->setUpFrontendRootPage(1, [
'constants' => [ 'constants' => [
'EXT:events/Configuration/TypoScript/constants.typoscript', 'EXT:events/Configuration/TypoScript/constants.typoscript',
@ -47,7 +50,7 @@ class FilterTest extends FunctionalTestCase
*/ */
public function canFilterByASingleLocationViaFlexform(): void 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 = new InternalRequest();
$request = $request->withPageId(1); $request = $request->withPageId(1);
@ -65,7 +68,7 @@ class FilterTest extends FunctionalTestCase
*/ */
public function canFilterByTwoLocationsViaFlexform(): void 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 = new InternalRequest();
$request = $request->withPageId(1); $request = $request->withPageId(1);

View file

@ -0,0 +1,89 @@
<?php
return [
'tt_content' => [
[
'pid' => '1',
'uid' => '1',
'CType' => 'list',
'list_type' => 'events_datelist',
'header' => 'Kino Events',
'pi_flexform' => '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
<data>
<sheet index="sDEF">
<language index="lDEF">
<field index="settings.locations">
<value index="vDEF">1</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>
',
],
],
'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',
],
],
];

View file

@ -1,83 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tt_content>
<pid>1</pid>
<uid>1</uid>
<CType>list</CType>
<list_type>events_datelist</list_type>
<header>Kino Events</header>
<pi_flexform><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
<data>
<sheet index="sDEF">
<language index="lDEF">
<field index="settings.locations">
<value index="vDEF">1</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>
]]></pi_flexform>
</tt_content>
<tx_events_domain_model_location>
<uid>1</uid>
<pid>2</pid>
<name>Theater im Gewölbe</name>
<street>Cranach-Haus Markt 11/12</street>
<city>Weimar</city>
<zip>99423</zip>
<country>Deutschland</country>
<longitude>11.330248</longitude>
<latitude>50.979349</latitude>
</tx_events_domain_model_location>
<tx_events_domain_model_event>
<uid>1</uid>
<pid>2</pid>
<title>Was hat das Universum mit mir zu tun?</title>
<global_id>e_100478529</global_id>
<teaser>„WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“
Ein Abend mit Prof. Dr. Harald Lesch</teaser>
<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!</details>
<price_info>Preis inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl</price_info>
<location>1</location>
</tx_events_domain_model_event>
<tx_events_domain_model_event>
<uid>2</uid>
<pid>2</pid>
<title>Lotte in Weimar</title>
<global_id>e_100453137</global_id>
<teaser>Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann</teaser>
<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.</details>
<price_info>Preise inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl (ermäßigt alkoholfrei)</price_info>
<location>0</location>
</tx_events_domain_model_event>
<tx_events_domain_model_date>
<uid>1</uid>
<pid>2</pid>
<event>1</event>
<start>1661626800</start>
<end>1661632200</end>
</tx_events_domain_model_date>
<tx_events_domain_model_date>
<uid>2</uid>
<pid>2</pid>
<event>1</event>
<start>1660158000</start>
<end>1660163400</end>
</tx_events_domain_model_date>
<tx_events_domain_model_date>
<uid>3</uid>
<pid>2</pid>
<event>2</event>
<start>1661194800</start>
<end>1661200200</end>
</tx_events_domain_model_date>
</dataset>

View file

@ -0,0 +1,101 @@
<?php
return [
'tt_content' => [
[
'pid' => '1',
'uid' => '1',
'CType' => 'list',
'list_type' => 'events_datelist',
'header' => 'Kino Events',
'pi_flexform' => '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
<data>
<sheet index="sDEF">
<language index="lDEF">
<field index="settings.locations">
<value index="vDEF">1,2</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>
',
],
],
'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',
],
],
];

View file

@ -1,95 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tt_content>
<pid>1</pid>
<uid>1</uid>
<CType>list</CType>
<list_type>events_datelist</list_type>
<header>Kino Events</header>
<pi_flexform><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
<data>
<sheet index="sDEF">
<language index="lDEF">
<field index="settings.locations">
<value index="vDEF">1,2</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>
]]></pi_flexform>
</tt_content>
<tx_events_domain_model_location>
<uid>1</uid>
<pid>2</pid>
<name>Theater im Gewölbe</name>
<street>Cranach-Haus Markt 11/12</street>
<city>Weimar</city>
<zip>99423</zip>
<country>Deutschland</country>
<longitude>11.330248</longitude>
<latitude>50.979349</latitude>
</tx_events_domain_model_location>
<tx_events_domain_model_location>
<uid>2</uid>
<pid>2</pid>
<name>Künstlergarten Weimar</name>
<street>Theaterplatz 4</street>
<city>Weimar</city>
<zip>99423</zip>
<country>Deutschland</country>
<longitude>11.3262489</longitude>
<latitude>50.9800023</latitude>
<district>Zentrum</district>
</tx_events_domain_model_location>
<tx_events_domain_model_event>
<uid>1</uid>
<pid>2</pid>
<title>Was hat das Universum mit mir zu tun?</title>
<global_id>e_100478529</global_id>
<teaser>„WAS HAT DAS UNIVERSUM MIT MIR ZU TUN?“
Ein Abend mit Prof. Dr. Harald Lesch</teaser>
<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!</details>
<price_info>Preis inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl</price_info>
<location>1</location>
</tx_events_domain_model_event>
<tx_events_domain_model_event>
<uid>2</uid>
<pid>2</pid>
<title>Lotte in Weimar</title>
<global_id>e_100453137</global_id>
<teaser>Ein „Goethe-Götter-Lustspiel“ nach dem gleichnamigen Roman von Thomas Mann</teaser>
<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.</details>
<price_info>Preise inklusive Platzierung mit Namensschild und einem Pausengetränk Ihrer Wahl (ermäßigt alkoholfrei)</price_info>
<location>2</location>
</tx_events_domain_model_event>
<tx_events_domain_model_date>
<uid>1</uid>
<pid>2</pid>
<event>1</event>
<start>1661626800</start>
<end>1661632200</end>
</tx_events_domain_model_date>
<tx_events_domain_model_date>
<uid>2</uid>
<pid>2</pid>
<event>1</event>
<start>1660158000</start>
<end>1660163400</end>
</tx_events_domain_model_date>
<tx_events_domain_model_date>
<uid>3</uid>
<pid>2</pid>
<event>2</event>
<start>1661194800</start>
<end>1661200200</end>
</tx_events_domain_model_date>
</dataset>

View file

@ -1,4 +0,0 @@
pages
,uid,pid,title,slug
,1,0,Page 1,/
,2,1,Storage,/storage
1 pages
2 ,uid,pid,title,slug
3 ,1,0,Page 1,/
4 ,2,1,Storage,/storage

View file

@ -0,0 +1,18 @@
<?php
return [
'pages' => [
[
'uid' => 1,
'pid' => 0,
'title' => 'Page 1',
'slug' => '',
],
[
'uid' => 2,
'pid' => 1,
'title' => 'Storage',
'slug' => '/storage',
],
],
];

View file

@ -2,6 +2,7 @@
namespace Wrm\Events\Tests\Functional\Import\DestinationDataTest; namespace Wrm\Events\Tests\Functional\Import\DestinationDataTest;
use Codappix\Typo3PhpDatasets\TestingFramework;
use GuzzleHttp\ClientInterface as GuzzleClientInterface; use GuzzleHttp\ClientInterface as GuzzleClientInterface;
use Psr\Http\Client\ClientInterface; use Psr\Http\Client\ClientInterface;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
@ -16,6 +17,8 @@ use Wrm\Events\Tests\ClientFactory;
abstract class AbstractTest extends FunctionalTestCase abstract class AbstractTest extends FunctionalTestCase
{ {
use TestingFramework;
protected $coreExtensionsToLoad = [ protected $coreExtensionsToLoad = [
'filelist', 'filelist',
]; ];
@ -28,7 +31,7 @@ abstract class AbstractTest extends FunctionalTestCase
{ {
parent::setUp(); parent::setUp();
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/Structure.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/Structure.php');
$this->setUpBackendUserFromFixture(1); $this->setUpBackendUserFromFixture(1);
$languageServiceFactory = $this->getContainer()->get(LanguageServiceFactory::class); $languageServiceFactory = $this->getContainer()->get(LanguageServiceFactory::class);

View file

@ -0,0 +1,15 @@
<?php
return [
'tx_events_domain_model_import' => [
[
'uid' => '1',
'pid' => '2',
'title' => 'Example import configuration',
'storage_pid' => '2',
'files_folder' => '1:/staedte/beispielstadt/events/',
'region' => '1',
'rest_experience' => 'beispielstadt',
],
],
];

View file

@ -0,0 +1,48 @@
<?php
return [
'tx_events_domain_model_import' => [
[
'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',
],
],
];

View file

@ -0,0 +1,20 @@
<?php
return [
'tx_events_domain_model_import' => [
[
'uid' => '1',
'pid' => '2',
'title' => 'Example for test',
'storage_pid' => '2',
],
],
'pages' => [
[
'pid' => '2',
'uid' => '3',
'title' => 'Features Storage',
'doktype' => '254',
],
],
];

View file

@ -0,0 +1,13 @@
<?php
return [
'tx_events_domain_model_import' => [
[
'uid' => '1',
'pid' => '2',
'title' => 'Example import configuration',
'storage_pid' => '2',
'rest_experience' => 'beispielstadt',
],
],
];

View file

@ -0,0 +1,26 @@
<?php
return [
'tx_events_domain_model_import' => [
[
'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',
],
],
];

View file

@ -0,0 +1,17 @@
<?php
return [
'sys_category' => [
[
'uid' => '1',
'pid' => '2',
'title' => 'Top Category',
],
[
'uid' => '2',
'pid' => '2',
'title' => 'Event Category Parent',
'parent' => '1',
],
],
];

View file

@ -0,0 +1,18 @@
<?php
return [
'tx_events_domain_model_import' => [
[
'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"',
],
],
];

View file

@ -0,0 +1,17 @@
<?php
return [
'tx_events_domain_model_import' => [
[
'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',
],
],
];

View file

@ -0,0 +1,14 @@
<?php
return [
'tx_events_domain_model_import' => [
[
'uid' => '1',
'pid' => '2',
'title' => 'Example import configuration',
'storage_pid' => '2',
'files_folder' => '1:/staedte/beispielstadt/events/',
'rest_experience' => 'beispielstadt',
],
],
];

View file

@ -0,0 +1,11 @@
<?php
return [
'tx_events_domain_model_region' => [
[
'uid' => '1',
'pid' => '2',
'title' => 'Example Region',
],
],
];

View file

@ -0,0 +1,19 @@
<?php
return [
'pages' => [
[
'pid' => '0',
'uid' => '1',
'title' => 'Root page',
'slug' => '1',
'is_siteroot' => '1',
],
[
'pid' => '1',
'uid' => '2',
'title' => 'Storage',
'doktype' => '254',
],
],
];

View file

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tx_events_domain_model_import>
<uid>1</uid>
<pid>2</pid>
<title>Example import configuration</title>
<storage_pid>2</storage_pid>
<files_folder>1:/staedte/beispielstadt/events/</files_folder>
<region>1</region>
<rest_experience>beispielstadt</rest_experience>
</tx_events_domain_model_import>
</dataset>

View file

@ -1,43 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tx_events_domain_model_import>
<uid>1</uid>
<pid>2</pid>
<title>Example for test</title>
<storage_pid>2</storage_pid>
<features_pid>3</features_pid>
<features_parent>4</features_parent>
</tx_events_domain_model_import>
<pages>
<pid>2</pid>
<uid>3</uid>
<title>Features Storage</title>
<doktype>254</doktype>
</pages>
<sys_category>
<uid>1</uid>
<pid>2</pid>
<title>Top Category</title>
</sys_category>
<sys_category>
<uid>2</uid>
<pid>2</pid>
<title>Event Category Parent</title>
<parent>1</parent>
</sys_category>
<sys_category>
<uid>4</uid>
<pid>2</pid>
<title>Event Feature Parent</title>
<parent>1</parent>
</sys_category>
<sys_category>
<uid>5</uid>
<pid>3</pid>
<title>vorhandenes Feature</title>
<parent>4</parent>
<hidden>0</hidden>
</sys_category>
</dataset>

View file

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tx_events_domain_model_import>
<uid>1</uid>
<pid>2</pid>
<title>Example for test</title>
<storage_pid>2</storage_pid>
</tx_events_domain_model_import>
<pages>
<pid>2</pid>
<uid>3</uid>
<title>Features Storage</title>
<doktype>254</doktype>
</pages>
</dataset>

View file

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tx_events_domain_model_import>
<uid>1</uid>
<pid>2</pid>
<title>Example import configuration</title>
<storage_pid>2</storage_pid>
<rest_experience>beispielstadt</rest_experience>
</tx_events_domain_model_import>
</dataset>

View file

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tx_events_domain_model_import>
<uid>2</uid>
<pid>2</pid>
<title>Second Example import configuration</title>
<storage_pid>3</storage_pid>
<files_folder>1:/staedte/anderestadt/events/</files_folder>
<categories_pid>2</categories_pid>
<category_parent>2</category_parent>
<region>1</region>
<rest_experience>anderestadt</rest_experience>
<rest_search_query>name:"Beispiel2"</rest_search_query>
</tx_events_domain_model_import>
<pages>
<pid>1</pid>
<uid>3</uid>
<title>Storage</title>
<doktype>254</doktype>
</pages>
</dataset>

View file

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<sys_category>
<uid>1</uid>
<pid>2</pid>
<title>Top Category</title>
</sys_category>
<sys_category>
<uid>2</uid>
<pid>2</pid>
<title>Event Category Parent</title>
<parent>1</parent>
</sys_category>
</dataset>

View file

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tx_events_domain_model_import>
<uid>1</uid>
<pid>2</pid>
<title>Example import configuration</title>
<storage_pid>2</storage_pid>
<files_folder>1:/staedte/beispielstadt/events/</files_folder>
<categories_pid>2</categories_pid>
<category_parent>2</category_parent>
<region>1</region>
<rest_experience>beispielstadt</rest_experience>
<rest_search_query>name:"Beispiel"</rest_search_query>
</tx_events_domain_model_import>
</dataset>

View file

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tx_events_domain_model_import>
<uid>1</uid>
<pid>2</pid>
<title>Example import configuration</title>
<storage_pid>2</storage_pid>
<files_folder>1:/staedte/beispielstadt/events/</files_folder>
<categories_pid>2</categories_pid>
<category_parent>2</category_parent>
<region>1</region>
<rest_experience>beispielstadt</rest_experience>
</tx_events_domain_model_import>
</dataset>

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tx_events_domain_model_import>
<uid>1</uid>
<pid>2</pid>
<title>Example import configuration</title>
<storage_pid>2</storage_pid>
<files_folder>1:/staedte/beispielstadt/events/</files_folder>
<rest_experience>beispielstadt</rest_experience>
</tx_events_domain_model_import>
</dataset>

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<tx_events_domain_model_region>
<uid>1</uid>
<pid>2</pid>
<title>Example Region</title>
</tx_events_domain_model_region>
</dataset>

View file

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<pages>
<pid>0</pid>
<uid>1</uid>
<title>Root page</title>
<slug>1</slug>
<is_siteroot>1</is_siteroot>
</pages>
<pages>
<pid>1</pid>
<uid>2</uid>
<title>Storage</title>
<doktype>254</doktype>
</pages>
</dataset>

View file

@ -20,7 +20,7 @@ class ImportCleansTransientFilesTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -20,7 +20,7 @@ class ImportDoesNotUseUploadsFolderTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -16,9 +16,9 @@ class ImportDoesntBreakWithLongFileTitleTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithCategories.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfigurationWithCategories.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -19,9 +19,9 @@ class ImportDoesntEndUpInEndlessDateCreationTest extends AbstractTest
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->setDateAspect(new \DateTimeImmutable('2022-07-01'), new \DateTimeZone('Europe/Berlin')); $this->setDateAspect(new \DateTimeImmutable('2022-07-01'), new \DateTimeZone('Europe/Berlin'));
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -26,10 +26,10 @@ class ImportsAllConfigurationTest extends AbstractTest
$fileImportPath2 = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration2; $fileImportPath2 = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration2;
GeneralUtility::mkdir_deep($fileImportPath2); GeneralUtility::mkdir_deep($fileImportPath2);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfiguration.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfiguration.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SecondImportConfiguration.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SecondImportConfiguration.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -21,9 +21,9 @@ class ImportsExampleAsExpectedTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithCategories.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfigurationWithCategories.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -20,7 +20,7 @@ class ImportsFeaturesTest extends AbstractTest
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', '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([ $this->setUpResponses([
new Response(200, [], file_get_contents(__DIR__ . '/Fixtures/ResponseWithFeatures.json') ?: ''), new Response(200, [], file_get_contents(__DIR__ . '/Fixtures/ResponseWithFeatures.json') ?: ''),
]); ]);

View file

@ -17,7 +17,7 @@ class ImportsFirstDateOfDatesTest extends AbstractTest
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', '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'))); $this->setDateAspect(new \DateTimeImmutable('2022-07-13', new \DateTimeZone('UTC')));
} }

View file

@ -22,9 +22,9 @@ class ImportsSingleConfigurationTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfiguration.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfiguration.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -21,9 +21,9 @@ class ImportsTicketsTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -14,7 +14,7 @@ class ImportsWithConfiguredRepeatUntilTest extends AbstractTest
{ {
parent::setUp(); 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'))); $this->setDateAspect(new \DateTimeImmutable('2022-07-13', new \DateTimeZone('UTC')));
} }

View file

@ -19,7 +19,7 @@ class ImportsWithLocationsTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',

View file

@ -19,8 +19,8 @@ class ImportsWithoutCategoryIfNotProvidedTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/DefaultImportConfiguration.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/DefaultImportConfiguration.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleRegion.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleRegion.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -19,7 +19,7 @@ class ImportsWithoutLocationTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithoutRegion.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfigurationWithoutRegion.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',

View file

@ -19,8 +19,8 @@ class ImportsWithoutRegionIfNotProvidedTest extends AbstractTest
$fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration; $fileImportPath = $this->getInstancePath() . '/fileadmin/' . $fileImportPathConfiguration;
GeneralUtility::mkdir_deep($fileImportPath); GeneralUtility::mkdir_deep($fileImportPath);
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleImportConfigurationWithoutRegion.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleImportConfigurationWithoutRegion.php');
$this->importDataSet('EXT:events/Tests/Functional/Import/DestinationDataTest/Fixtures/SingleCategory.xml'); $this->importPHPDataSet(__DIR__ . '/Fixtures/Database/SingleCategory.php');
$this->setUpConfiguration([ $this->setUpConfiguration([
'restUrl = https://example.com/some-path/', 'restUrl = https://example.com/some-path/',
'license = example-license', 'license = example-license',