Making ApiShell test, which uses Controller pass.

This commit is contained in:
mark_story 2011-07-13 22:48:09 -04:00
parent f28b42de2f
commit 358d591e95

View file

@ -65,19 +65,20 @@ class ApiShellTest extends CakeTestCase {
'8. getResponse()', '8. getResponse()',
'9. header($status)', '9. header($status)',
'10. httpCodes($code = NULL)', '10. httpCodes($code = NULL)',
'11. loadModel($modelClass = NULL, $id = NULL)', '11. invokeAction($request)',
'12. paginate($object = NULL, $scope = array (), $whitelist = array ())', '12. loadModel($modelClass = NULL, $id = NULL)',
'13. postConditions($data = array (), $op = NULL, $bool = \'AND\', $exclusive = false)', '13. paginate($object = NULL, $scope = array (), $whitelist = array ())',
'14. redirect($url, $status = NULL, $exit = true)', '14. postConditions($data = array (), $op = NULL, $bool = \'AND\', $exclusive = false)',
'15. referer($default = NULL, $local = false)', '15. redirect($url, $status = NULL, $exit = true)',
'16. render($view = NULL, $layout = NULL)', '16. referer($default = NULL, $local = false)',
'17. set($one, $two = NULL)', '17. render($view = NULL, $layout = NULL)',
'18. setAction($action)', '18. set($one, $two = NULL)',
'19. setRequest($request)', '19. setAction($action)',
'20. shutdownProcess()', '20. setRequest($request)',
'21. startupProcess()', '21. shutdownProcess()',
'22. validate()', '22. startupProcess()',
'23. validateErrors()' '23. validate()',
'24. validateErrors()'
); );
$this->Shell->expects($this->at(2))->method('out')->with($expected); $this->Shell->expects($this->at(2))->method('out')->with($expected);