photoBy: http://www.shellbarbakery.com/wp-content/uploads/…cakephpのコントローラーをテストまずはphpunitが使えることになっていることが前提。 テストコード/app/Test/Case/Controller/HogesControllerTest.php <?php class HogesControllerTest extends ControllerTestCase { public function testインデックスが表示されるかテスト() { $this->testAction('/hoges/index/', array('return' => 'view')); // ビューが入る pr($this->view); } public function testインデックスの変数だけ取