« Previous | Next » 

Revision 36a893c2

ID36a893c22e774810d0511797ab4d989531342f67

Added by Robert Lemke almost 10 years ago

[BUGFIX] Trigger allObjectsPersisted after every functional test

The tearDown() method of the base functional test case clears the
persistence manager's state so it is ready for the next test, avoiding
side effects.

However, certain repositories (such as the TYPO3CR NodeRepository) rely
on the signal "allObjectsPersisted" which triggers their internal
cleanup function. If this signal is not, sent, the next test will still
see added objects stored directly in the repository.

The solution is to call persistAll() in the tearDown() method, even if
the just executed test doesn't require it.

Change-Id: Ib0fe4f2f9cd56bc62fad8fe4fa5ee545fbc15aee
Fixes: #32346
Releases: 1.1, 1.0

  • added
  • modified
  • copied
  • renamed
  • deleted