mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +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
|
* @dataProvider paramReadingDataProvider
|
||||||
*/
|
*/
|
||||||
public function testParamReading($toRead, $expected) {
|
public function testParamReading($toRead, $expected) {
|
||||||
|
@ -2077,6 +2079,11 @@ class CakeRequestTest extends CakeTestCase {
|
||||||
$this->assertEquals($expected, $request->param($toRead));
|
$this->assertEquals($expected, $request->param($toRead));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data provider for testing reading values with CakeRequest::param()
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
public function paramReadingDataProvider() {
|
public function paramReadingDataProvider() {
|
||||||
return array(
|
return array(
|
||||||
array(
|
array(
|
||||||
|
@ -2114,6 +2121,11 @@ class CakeRequestTest extends CakeTestCase {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* test writing request params with param()
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function testParamWriting() {
|
public function testParamWriting() {
|
||||||
$request = new CakeRequest('/');
|
$request = new CakeRequest('/');
|
||||||
$request->addParams(array(
|
$request->addParams(array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue