Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listeners don't attached in test environment #2

Closed
julesbou opened this issue Dec 23, 2010 · 2 comments
Closed

Listeners don't attached in test environment #2

julesbou opened this issue Dec 23, 2010 · 2 comments

Comments

@julesbou
Copy link
Contributor

I'm not sure if it's a bug.

The core.request listener don't seems to be executed when in test environment.
So when created my database with data fixtures the entity-manager's event manager hasn't any listeners, i have to attach listeners manually when loading data fixtures.

Is it normal ? thank you

@stof
Copy link
Owner

stof commented Dec 23, 2010

Yeah, I think you have no request in the test environment (unless you use the client) so the event is not trigerred.
The former implementation used the booting of the bundle but I had to use a listener to put the locale from the session.
I didnot thought to the case of tests where there is no request.

@stof
Copy link
Owner

stof commented Feb 18, 2011

This is now fixed as the listeners are now registered through the DIC.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants