Project

General

Profile

Actions

Bug #81931

closed

Failed unit tests when using GeneralUtility::purgeInstances in other tests

Added by Joerg Boesche almost 7 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
Miscellaneous
Start date:
2017-07-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If a UnitTest is using "GeneralUtility::purgeInstances()" other tests fail.
There are a lot of UnitTests that have dependencies on previous test classes and test calls. This must be resolved. Each test must be run in its own scope.

Failing tests in test classes, if there are unit test classes with GeneralUtility::purgeInstances() calls.
  • \TYPO3\CMS\Core\Tests\Unit\Utility\RootlineUtilityTest
  • \TYPO3\CMS\Extbase\Tests\Unit\Object\Container\ContainerTest
  • \TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\BackendTest
  • \TYPO3\CMS\Extbase\Tests\Unit\Utility\LocalizationUtilityTest
  • ...
Actions

Also available in: Atom PDF