Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
[BUGFIX] Only include the PHAR from the test runners (#57)
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
oliverklee committed May 25, 2018
1 parent ca31078 commit 2cbfea9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Remove the obsolete ext_autoload.php (#56)

### Fixed
- Only include the PHAR from the test runners (#57, #53)
- Use the DB name from the connection pool in TYPO3 >= 8.7 (#58, #55)
- Hide the test tables from BE user table permission lists (#52)
- Simplify the fake frontend teardown (#51)
Expand Down
2 changes: 2 additions & 0 deletions Classes/BackEnd/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ protected function translate($key)
*/
public function main()
{
require_once __DIR__ . '/../../Resources/Private/Libraries/phpunit-library.phar';

$this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
$this->doc->backPath = $GLOBALS['BACK_PATH'];

Expand Down
2 changes: 2 additions & 0 deletions Classes/TestRunner/CliTestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public function run()
// This is needed as the configuration might include closures which cannot be backed up
$globalBackup = $this->removeClosures($GLOBALS['TYPO3_CONF_VARS']);

require_once __DIR__ . '/../../Resources/Private/Libraries/phpunit-library.phar';

// Run unit tests
/** @var string */
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');
Expand Down
3 changes: 0 additions & 3 deletions ext_localconf.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
defined('TYPO3_MODE') or die('Access denied.');

require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('phpunit')
. 'Resources/Private/Libraries/phpunit-library.phar';

if (TYPO3_MODE === 'BE'
&& \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) <= 8000000) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler(
Expand Down

0 comments on commit 2cbfea9

Please sign in to comment.