mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
adding doc block for tests related to CakeRequest::param()
This commit is contained in:
parent
bcdc530391
commit
59fe581912
1 changed files with 12 additions and 0 deletions
|
@ -2058,6 +2058,8 @@ class CakeRequestTest extends CakeTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Test reading params
|
||||
*
|
||||
* @dataProvider paramReadingDataProvider
|
||||
*/
|
||||
public function testParamReading($toRead, $expected) {
|
||||
|
@ -2077,6 +2079,11 @@ class CakeRequestTest extends CakeTestCase {
|
|||
$this->assertEquals($expected, $request->param($toRead));
|
||||
}
|
||||
|
||||
/**
|
||||
* Data provider for testing reading values with CakeRequest::param()
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function paramReadingDataProvider() {
|
||||
return array(
|
||||
array(
|
||||
|
@ -2114,6 +2121,11 @@ class CakeRequestTest extends CakeTestCase {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* test writing request params with param()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testParamWriting() {
|
||||
$request = new CakeRequest('/');
|
||||
$request->addParams(array(
|
||||
|
|
Loading…
Add table
Reference in a new issue