Thursday, February 24, 2011

Re: Web tests using fixtures: Finally got them working!

I have updated my solution, it's available as a library now that can
be used without big hassles. See here...

- Why web tests using the development database are a bad thing:
http://josh.ch/wordpress/?p=8
- Finally: use fixtures with your CakePHP web tests!:
http://josh.ch/wordpress/?p=71

I hope somebody else will find this useful. :-) Please leave a message
if you try it... I'm happy to optimize it further.

On Thu, Oct 14, 2010 at 11:28 AM, Joshua Muheim <psybear83@gmail.com> wrote:
> OK, I slightly updated the post and corrected the download link.
> Please, give it a try! :-)
>
> On Thu, Oct 14, 2010 at 10:31 AM, Joshua Muheim <psybear83@gmail.com> wrote:
>> Thanks for your reply, David.
>>
>> On Thu, Oct 14, 2010 at 10:30 AM, dtemes <dtemes@gmail.com> wrote:
>>> Thanks for sharing!
>>>
>>> check the link to the source code, it's not working for me.
>>
>> I'll take a look at it.
>>
>>> I have not
>>> seen the code, but you mention that you have just copy and pasted the
>>> fixtures code into your CakeWebTestCaseWithFixtures class. Instead of
>>> doing that you can instantiate a CakeTestCase inside your class and
>>> create some wrapper methods that call the corresponding methods of the
>>> CakeTestCase instance.
>>
>> Great idea! Thank you.
>>
>

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: