Skip to content

Commit

Permalink
Merge pull request #101 from b13/task/tests
Browse files Browse the repository at this point in the history
"[TASK] reuse current testing-framework 7"
  • Loading branch information
achimfritz authored Sep 22, 2023
2 parents 6479289 + 6b50d91 commit 355780f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions Build/testing-docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ services:
find Tests -name \\*.php -print0 | xargs -0 sed -i 's/protected bool \(.*\)resetSingletonInstances = /protected \1resetSingletonInstances = /g';
find Tests -name \\*.php -print0 | xargs -0 sed -i 's/protected array \(.*\)coreExtensionsToLoad = \[/protected \1coreExtensionsToLoad = [/g';
find Tests -name \\*.php -print0 | xargs -0 sed -i 's/protected array \(.*\)pathsToLinkInTestInstance = \[/protected \1pathsToLinkInTestInstance = [/g';
find Tests -name \\*.php -print0 | xargs -0 sed -i 's/protected array \(.*\)configurationToUseInTestInstance = \[/protected \1configurationToUseInTestInstance = [/g';
"
composer_validate:
Expand Down
12 changes: 12 additions & 0 deletions Tests/Functional/Hooks/DataHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ class DataHandlerTest extends FunctionalTestCase

protected array $testExtensionsToLoad = ['typo3conf/ext/menus'];

protected array $configurationToUseInTestInstance = [
'SYS' => [
'caching' => [
'cacheConfigurations' => [
'pages' => [
'backend' => \TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class,
],
],
],
],
];

protected function setUp(): void
{
parent::setUp();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"typo3/cms-install": "^11.5",
"typo3/coding-standards": "^0.5",
"typo3/tailor": "^1.0",
"typo3/testing-framework": "7.0.2"
"typo3/testing-framework": "^7"
},
"config": {
"vendor-dir": ".Build/vendor",
Expand Down

0 comments on commit 355780f

Please sign in to comment.