Hello,
You should have better result with parameters like :
$results = $this->testAction('/pages/help', array('result' =>
'vars'));

Then I've a question about fixtures :

I've enabled fixtures in My testController :

class PagesControllerTestCase extends CakeTestCase {
        var $fixtures = array('page_test');

        function testFixturize(){
                $results = $this->testAction('/pages/index', array('fixturize' 
=>
true, 'return' => 'vars'));
                debug($results);
        }
}

First I've an exception due to the use of decapreted loadModel()
(didn't where the test use it)
Second and more serious : the test load data from fixtures and  from
original table.

Is there a way to disabled that unexpective results?

Thanks,
David.

On 4 jan, 07:56, chewie124 <[EMAIL PROTECTED]> wrote:
> I'm exploring the CakeTestCase::testAction() method, and in a test,
> when I do something like in my controller unit test:
>
> functiontestAction() {
>   $results = $this->testAction('/pages/help');
>   debug($results);
>   $this->assertTrue(1);
>
> }
>
> the $results ends up being empty and the content of the page is
> displayed on the test.php page in the browser.  Does anybody have any
> remedy for this?  This is 6311 beta.
>
> TIA,
> Rich

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to