Bug #30379

Object persistence has side effects in functional tests

Added by Robert Lemke almost 4 years ago. Updated almost 4 years ago.

Status:Resolved Start date:2011-09-28
Priority:Must have Due date:
Assigned To:Robert Lemke % Done:

100%

Category:- Testing -
Target version:TYPO3 Flow Base Distribution - 1.0.0
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

Unpersisted objects which have been added, but not persisted (no Entity Manager flush() called) will still be present in following tests and thus generate side effects.

Associated revisions

Revision 10af83a3
Added by Robert Lemke almost 4 years ago

[BUGFIX] No persistence side effects anymore in functional tests

Doctrine's Unit of Work still contained objects from previous tests.
In order to prevent side effects, the Entity Manager must be cleared
before executing further tests.

Change-Id: I484c358f467cf3a13601486f31a92d1c15c403e1
Fixes: #30379

History

#1 Updated by Mr. Hudson almost 4 years ago

  • Status changed from Accepted to Under Review

Patch set 1 of change I484c358f467cf3a13601486f31a92d1c15c403e1 has been pushed to the review server.
It is available at http://review.typo3.org/5399

#2 Updated by Robert Lemke almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF