Bug #30379
Object persistence has side effects in functional tests
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
[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
Applied in changeset 10af83a3299ea8b0719bc470f28d5d1c8ca481e8.