We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df8734 commit 6c18f6aCopy full SHA for 6c18f6a
lib/Cake/Test/Case/Network/CakeResponseTest.php
@@ -1488,9 +1488,9 @@ public function testFileRangeInvalid() {
1488
*/
1489
public function testLocation() {
1490
$response = new CakeResponse();
1491
- $this->assertNull($response->location());
1492
- $this->assertNull($response->location('http://example.org'));
1493
- $this->assertEquals('http://example.org', $response->location());
+ $this->assertNull($response->location(), 'No header should be set.');
+ $this->assertNull($response->location('http://example.org'), 'Setting a location should return null');
+ $this->assertEquals('http://example.org', $response->location(), 'Reading a location should return the value.');
1494
}
1495
1496
0 commit comments