mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Updating doc blocks for CakeTestCase::testAction()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8075 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7dc627dd19
commit
a3809d608e
1 changed files with 14 additions and 8 deletions
|
@ -232,14 +232,20 @@ class CakeTestCase extends UnitTestCase {
|
|||
/**
|
||||
* Executes a Cake URL, and can get (depending on the $params['return'] value):
|
||||
*
|
||||
* 1. 'result': Whatever the action returns (and also specifies $this->params['requested']
|
||||
* for controller)
|
||||
* 2. 'view': The rendered view, without the layout
|
||||
* 3. 'contents': The rendered view, within the layout.
|
||||
* 4. 'vars': the view vars
|
||||
*
|
||||
* @param string $url Cake URL to execute (e.g: /articles/view/455)
|
||||
* @param array $params Parameters, or simply a string of what to return
|
||||
* Params:
|
||||
* - 'return' has several possible values:
|
||||
* 1. 'result': Whatever the action returns (and also specifies $this->params['requested'] for controller)
|
||||
* 2. 'view': The rendered view, without the layout
|
||||
* 3. 'contents': The rendered view, within the layout.
|
||||
* 4. 'vars': the view vars
|
||||
*
|
||||
* - 'fixturize' - Set to true if you want to copy model data from 'connection' to the test_suite connection
|
||||
* - 'data' - The data you want to insert into $this->data in the controller.
|
||||
* - 'connection' - Which connection to use in conjunction with fixturize (defaults to 'default')
|
||||
* - 'method' - What type of HTTP method to simulate (defaults to post)
|
||||
*
|
||||
* @param string $url Cake URL to execute (e.g: /articles/view/455)
|
||||
* @param mixed $params Parameters (see above), or simply a string of what to return
|
||||
* @return mixed Whatever is returned depending of requested result
|
||||
* @access public
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue