Bug #30379

Object persistence has side effects in functional tests

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

Status:
Resolved
Priority:
Must have
Assignee:
Category:
- Testing -
Start date:
2011-09-28
Due date:
% Done:

100%

PHP Version:
Has patch:
Complexity:

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 (diff)
Added by Robert Lemke almost 8 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 8 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 8 years ago

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

Also available in: Atom PDF