Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Run deprecated functional tests with phpunit 10
Functional deprecated tests are quite easy to fix for phpunit 10: Just some static data providers. We do the same as with "casual" functional tests: Temporarily allowing execution with phpunit 10 in runTests.sh in addition to phpunit 9, plus CI addition. Resolves: #100507 Related: #100249 Releases: main Change-Id: I31e012c558214b55ba24cbd311f918ef54ab0111 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78513 Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
Showing
7 changed files
with
120 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Functional test suite setup | ||
Functional tests should extend \TYPO3\TestingFramework\Core\Tests\FunctionalTestCase, | ||
take a look at this class for further documentation on how to run the suite. | ||
TYPO3 CMS functional test suite also needs phpunit bootstrap code, the | ||
file is located next to this .xml as FunctionalTestsBootstrap.php | ||
The recommended way to execute the suite is "runTests.sh -s functional" | ||
execute "Build/Scripts/runTests.sh -h" for more details. | ||
--> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" | ||
backupGlobals="true" | ||
bootstrap="FunctionalTestsBootstrap.php" | ||
cacheResult="false" | ||
colors="true" | ||
beStrictAboutTestsThatDoNotTestAnything="false" | ||
failOnWarning="true" | ||
failOnRisky="true" | ||
cacheDirectory=".phpunit.cache" | ||
> | ||
<testsuites> | ||
<testsuite name="Core tests"> | ||
<directory>../../typo3/sysext/*/Tests/FunctionalDeprecated/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<ini name="display_errors" value="1"/> | ||
<ini name="error_reporting" value="E_ALL"/> | ||
<env name="TYPO3_CONTEXT" value="Testing"/> | ||
</php> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters