Skip to content

Commit

Permalink
adding doc block for tests related to CakeRequest::param()
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed May 28, 2014
1 parent bcdc530 commit 59fe581
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Cake/Test/Case/Network/CakeRequestTest.php
Expand Up @@ -2058,6 +2058,8 @@ public function testDataWritingFalsey() {
}

/**
* Test reading params
*
* @dataProvider paramReadingDataProvider
*/
public function testParamReading($toRead, $expected) {
Expand All @@ -2077,6 +2079,11 @@ public function testParamReading($toRead, $expected) {
$this->assertEquals($expected, $request->param($toRead));
}

/**
* Data provider for testing reading values with CakeRequest::param()
*
* @return array
*/
public function paramReadingDataProvider() {
return array(
array(
Expand Down Expand Up @@ -2114,6 +2121,11 @@ public function paramReadingDataProvider() {
);
}

/**
* test writing request params with param()
*
* @return void
*/
public function testParamWriting() {
$request = new CakeRequest('/');
$request->addParams(array(
Expand Down

0 comments on commit 59fe581

Please sign in to comment.