mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-15 20:16:13 +01:00
41b44c28a4
typo3/testing-framework provides some template files as kickstart for project and extension based testing. They are properly marked to be copied and not used directly from the package. The reason for this recommendation is, that project should make adjustments to theire concrete setup, like coverage settings and so on. This change clonses the corresponding template files from the testing-framework to folders in this extension, adjusts needed paths and ensure testing is still working. With that this best practice example follows the recommendation and best-practice for typo3/testing-framework usage. Tasks * provided cloned unit- and function test configuration and bootstrap files in `Build/phpunit/` * updated cloned phpunit configuration files to be phpunit v9 compatible, removing old coverage tag as this is done by cli options in this repository anyway * add proper xml namespacing to cloned phpunit configurations * adjustes config paths in unit and functional testing calls provided as composer scripts * adjusted phpunit configuration files in documentation Resolves #533
30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of the TYPO3 CMS project.
|
|
*
|
|
* It is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU General Public License, either version 2
|
|
* of the License, or any later version.
|
|
*
|
|
* For the full copyright and license information, please read the
|
|
* LICENSE.txt file that was distributed with this source code.
|
|
*
|
|
* The TYPO3 project - inspiring people to share!
|
|
*/
|
|
|
|
/**
|
|
* Boilerplate for a functional test phpunit boostrap file.
|
|
*
|
|
* This file is loosely maintained within TYPO3 testing-framework, extensions
|
|
* are encouraged to not use it directly, but to copy it to an own place,
|
|
* usually in parallel to a FunctionalTests.xml file.
|
|
*
|
|
* This file is defined in FunctionalTests.xml and called by phpunit
|
|
* before instantiating the test suites.
|
|
*/
|
|
(static function () {
|
|
$testbase = new \TYPO3\TestingFramework\Core\Testbase();
|
|
$testbase->defineOriginalRootPath();
|
|
$testbase->createDirectory(ORIGINAL_ROOT . 'typo3temp/var/tests');
|
|
$testbase->createDirectory(ORIGINAL_ROOT . 'typo3temp/var/transient');
|
|
})();
|