Skip to content

Commit 121226e

Browse files
committed
[TASK] Simplify unit tests configuration
This change simplifies the call of unit tests within solr-ddev-site and EXT:solr CI/Build process.
1 parent 91afc03 commit 121226e

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

33
DG\BypassFinals::enable();
4-
require (\Composer\InstalledVersions::getInstallPath('typo3/testing-framework') ?? '')
4+
require (\Composer\InstalledVersions::getInstallPath('typo3/testing-framework') ?? '../../.Build/vendor/typo3/testing-framework')
55
. '/Resources/Core/Build/FunctionalTestsBootstrap.php';

Build/Test/UnitTests.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.4/phpunit.xsd"
44
backupGlobals="true"
55
beStrictAboutTestsThatDoNotTestAnything="false"
6-
bootstrap="../../.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php"
6+
bootstrap="./UnitTestsBootstrap.php"
77
cacheDirectory=".phpunit.cache"
88
cacheResult="false"
99
colors="true"

Build/Test/UnitTestsBootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
require (\Composer\InstalledVersions::getInstallPath('typo3/testing-framework') ?? '../../.Build/vendor/typo3/testing-framework')
4+
. '/Resources/Core/Build/UnitTestsBootstrap.php';

0 commit comments

Comments
 (0)