Hi,
I sent it a few seconds ago.
Many thanks,
Nicolas.
On 10-10-20 06:15 PM, Kris Wallsmith wrote:
Sounds reasonable to me. Have you submitted a pull request?
--
*Kris Wallsmith* | Release Manager
[email protected]
<mailto:[email protected]>
Portland, Oregon USA
http://twitter.com/kriswallsmith
On Oct 20, 2010, at 2:18 PM, Nicolas A. Bérard-Nault wrote:
Hi,
About 3 weeks ago, I sent this message to the mailing list, to no avail.
Changing the order of the two method calls in
Symfony\Bundle\FrameworkBundle\Client::doRequest() enables us to
create fixtures, save them in memory and clean up afterwards. I do
not see any reason why the methods are in this order.
Is there something I didn't see or should I send a pull request ?
Thank you,
Nicolas.
On 10-09-26 05:59 PM, "Nicolas A. Bérard-Nault" wrote:
Hi all,
I am currently writing functional tests for one of my controllers
which queries the database. My strategy is to use sqlite:memory and
export my schema to the database using Doctrine 2's exporter, and
then fill the pseudo-database with random data.
First, I create the client and use its container to retrieve the
Entity Manager. I then export the schema and subsequently run my
query. Unfortunately, my fixture disappears because the
Symfony\Bundle\FrameworkBundle\Client class' doRequest() method
reboots the kernel, effectively nulling the container and creating a
new one, which in turn destroys my entity manager and creates
another one, which, you've guessed, resets the sqlite:memory
database. Unless someone has a better idea on how to inject the
fixture data in my controller (remember I'm doing blackbox testing),
I would suggest moving the reboot() call after the request is sent,
which would make it possible to inject test fixtures into the
controllers.
Thank you for your time, I'll be waiting for your comments !
Cheers,
Nicolas.
--
If you want to report a vulnerability issue on symfony, please send
it to security at symfony-project.com <http://symfony-project.com>
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:[email protected]>
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
--
If you want to report a vulnerability issue on symfony, please send it
to security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en