コントローラのテストを行いたいときは、testActionメソッドを使用する。
<?php $data = /* 返り値の期待値を指定する */; $result = $this->testAction('/コントローラ名/メソッド名/パラメータ', array('fixturize' => true, 'data' => $data, 'method' => 'post')); debug($result); // テストを行う
コントローラのテストを行いたいときは、testActionメソッドを使用する。
<?php $data = /* 返り値の期待値を指定する */; $result = $this->testAction('/コントローラ名/メソッド名/パラメータ', array('fixturize' => true, 'data' => $data, 'method' => 'post')); debug($result); // テストを行う