Re: testAction and Mock objects

2008-08-25 Thread mark_story
On Aug 25, 8:52 am, cdamian <[EMAIL PROTECTED]> wrote: > I also have problems with testAction() and fixtures, somehow it does > not seem to be quite ready yet. > > On Aug 25, 1:50 pm, JuergenRiemer <[EMAIL PROTECTED]> wrote: > > > One thing I have to add: if I call the methods directly like > > $t

Re: testAction and Mock objects

2008-08-25 Thread cdamian
I also have problems with testAction() and fixtures, somehow it does not seem to be quite ready yet. On Aug 25, 1:50 pm, JuergenRiemer <[EMAIL PROTECTED]> wrote: > One thing I have to add: if I call the methods directly like > $this->UsersController->display(); > the mocking works like a champ...

Re: testAction and Mock objects

2008-08-25 Thread JuergenRiemer
One thing I have to add: if I call the methods directly like $this->UsersController->display(); the mocking works like a champ... yet in that case: how to easily pass on POST data to "display"? --~--~-~--~~~---~--~~ You received this message because you are subscr

testAction and Mock objects

2008-08-25 Thread JuergenRiemer
Hi, I want to test a function of Users (display) which calls a component (Country) its function "countryName" respectively. Now I want to mock this component and have it return a predefined value. I thought of using testAction and setup my test like below. the problem: the mock doesn't seem to wo