TYPO3ContentElements/Tests/Unit
Daniel Siepmann 01d25e4c49
Allow creation of content elements
Content elements could not be created, since they needed campaigns.
In order to retrieve campaigns, the API needs to be created.
The API needs settings from current site, which is not available in that
context.

Therefore the factory is extended to also fetch site and their settings
based on page uid. The page uid is available in the context.

Since we now interact with guzzle, we add the dependency.
Wouldn't be necessary if SDK would have PSR compatible type hints.

Also tests were added for code, to keep code coverage.

Fixes: #5
2021-01-23 15:53:07 +01:00
..
Backend Ensure strict_types are defined 2021-01-23 15:52:16 +01:00
Frontend/DataProcessing Ensure strict_types are defined 2021-01-23 15:52:16 +01:00
ViewHelpers/Verification Ensure strict_types are defined 2021-01-23 15:52:16 +01:00
CampaignsFactoryTest.php Allow creation of content elements 2021-01-23 15:53:07 +01:00
SettingsFactoryTest.php Allow creation of content elements 2021-01-23 15:53:07 +01:00
TcaEnhancerTest.php Allow creation of content elements 2021-01-23 15:53:07 +01:00