From f94fcfb749ff18283fe531e4805567fb64508e7d Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 7 Sep 2010 23:42:18 -0400 Subject: [PATCH] Updating Api shell test case to account for changes in controller api. --- cake/tests/cases/console/libs/api.test.php | 31 +++++++++++----------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/cake/tests/cases/console/libs/api.test.php b/cake/tests/cases/console/libs/api.test.php index aeea6c737..76f52b449 100644 --- a/cake/tests/cases/console/libs/api.test.php +++ b/cake/tests/cases/console/libs/api.test.php @@ -84,21 +84,22 @@ class ApiShellTest extends CakeTestCase { '4. constructClasses()', '5. disableCache()', '6. flash($message, $url, $pause = 1, $layout = \'flash\')', - '7. header($status)', - '8. httpCodes($code = NULL)', - '9. isAuthorized()', - '10. loadModel($modelClass = NULL, $id = NULL)', - '11. paginate($object = NULL, $scope = array (), $whitelist = array ())', - '12. postConditions($data = array (), $op = NULL, $bool = \'AND\', $exclusive = false)', - '13. redirect($url, $status = NULL, $exit = true)', - '14. referer($default = NULL, $local = false)', - '15. render($action = NULL, $layout = NULL, $file = NULL)', - '16. set($one, $two = NULL)', - '17. setAction($action)', - '18. shutdownProcess()', - '19. startupProcess()', - '20. validate()', - '21. validateErrors()' + '7. getResponse()', + '8. header($status)', + '9. httpCodes($code = NULL)', + '10. isAuthorized()', + '11. loadModel($modelClass = NULL, $id = NULL)', + '12. paginate($object = NULL, $scope = array (), $whitelist = array ())', + '13. postConditions($data = array (), $op = NULL, $bool = \'AND\', $exclusive = false)', + '14. redirect($url, $status = NULL, $exit = true)', + '15. referer($default = NULL, $local = false)', + '16. render($action = NULL, $layout = NULL, $file = NULL)', + '17. set($one, $two = NULL)', + '18. setAction($action)', + '19. shutdownProcess()', + '20. startupProcess()', + '21. validate()', + '22. validateErrors()' ); $this->Shell->expects($this->at(2))->method('out')->with($expected);