Project

General

Profile

Actions

Bug #50812

closed

Make sure in unit tests the singletons are backup at first

Added by Nicole Cordes over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
Start date:
2013-08-06
Due date:
% Done:

100%

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

Description

If in unit tests the singleton management is changed there is a local copy of the initial stage. If the backup contains classes which were created during setup method after finishing the test the internal __destruct method is called. This is why it is necessary to store the singleton classes before any other initialization otherwise the construct function is not executed for other tests and properties are false or missing.

Actions

Also available in: Atom PDF