mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 23:49:55 +00:00
Updating Api shell test case to account for changes in controller api.
This commit is contained in:
parent
b02d961d82
commit
f94fcfb749
1 changed files with 16 additions and 15 deletions
|
@ -84,21 +84,22 @@ class ApiShellTest extends CakeTestCase {
|
||||||
'4. constructClasses()',
|
'4. constructClasses()',
|
||||||
'5. disableCache()',
|
'5. disableCache()',
|
||||||
'6. flash($message, $url, $pause = 1, $layout = \'flash\')',
|
'6. flash($message, $url, $pause = 1, $layout = \'flash\')',
|
||||||
'7. header($status)',
|
'7. getResponse()',
|
||||||
'8. httpCodes($code = NULL)',
|
'8. header($status)',
|
||||||
'9. isAuthorized()',
|
'9. httpCodes($code = NULL)',
|
||||||
'10. loadModel($modelClass = NULL, $id = NULL)',
|
'10. isAuthorized()',
|
||||||
'11. paginate($object = NULL, $scope = array (), $whitelist = array ())',
|
'11. loadModel($modelClass = NULL, $id = NULL)',
|
||||||
'12. postConditions($data = array (), $op = NULL, $bool = \'AND\', $exclusive = false)',
|
'12. paginate($object = NULL, $scope = array (), $whitelist = array ())',
|
||||||
'13. redirect($url, $status = NULL, $exit = true)',
|
'13. postConditions($data = array (), $op = NULL, $bool = \'AND\', $exclusive = false)',
|
||||||
'14. referer($default = NULL, $local = false)',
|
'14. redirect($url, $status = NULL, $exit = true)',
|
||||||
'15. render($action = NULL, $layout = NULL, $file = NULL)',
|
'15. referer($default = NULL, $local = false)',
|
||||||
'16. set($one, $two = NULL)',
|
'16. render($action = NULL, $layout = NULL, $file = NULL)',
|
||||||
'17. setAction($action)',
|
'17. set($one, $two = NULL)',
|
||||||
'18. shutdownProcess()',
|
'18. setAction($action)',
|
||||||
'19. startupProcess()',
|
'19. shutdownProcess()',
|
||||||
'20. validate()',
|
'20. startupProcess()',
|
||||||
'21. validateErrors()'
|
'21. validate()',
|
||||||
|
'22. validateErrors()'
|
||||||
);
|
);
|
||||||
$this->Shell->expects($this->at(2))->method('out')->with($expected);
|
$this->Shell->expects($this->at(2))->method('out')->with($expected);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue