Skip to content

Commit

Permalink
Fixed using reserved word
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed May 11, 2018
1 parent 04da3de commit beb80fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/TestCase/TestSuite/IntegrationTestTraitTest.php
Expand Up @@ -1202,7 +1202,7 @@ public function assertionFailureMessagesProvider()
'assertResponseError' => ['assertResponseError', 'Failed asserting that 200 is between 400 and 429.', '/posts/index'],
'assertResponseFailure' => ['assertResponseFailure', 'Failed asserting that 200 is between 500 and 505.', '/posts/index'],
'assertResponseNotContains' => ['assertResponseNotContains', 'Failed asserting that \'index\' is not in response body.', '/posts/index', 'index'],
'assertResponseNotEmpty' => ['assertResponseNotEmpty', 'Failed asserting that response body is not empty.', '/posts/empty'],
'assertResponseNotEmpty' => ['assertResponseNotEmpty', 'Failed asserting that response body is not empty.', '/posts/empty_response'],
'assertResponseNotEquals' => ['assertResponseNotEquals', 'Failed asserting that \'posts index\' does not match response body.', '/posts/index/error', 'posts index'],
'assertResponseNotRegExp' => ['assertResponseNotRegExp', 'Failed asserting that /index/ PCRE pattern not found in response body.', '/posts/index/error', '/index/'],
'assertResponseOk' => ['assertResponseOk', 'Failed asserting that 404 is between 200 and 204.', '/posts/missing', '/index/'],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_app/TestApp/Controller/PostsController.php
Expand Up @@ -102,7 +102,7 @@ public function header()
return $this->getResponse()->withHeader('X-Cake', 'custom header');
}

public function empty()
public function empty_response()
{
return $this->getResponse()->withStringBody('');
}
Expand Down

0 comments on commit beb80fd

Please sign in to comment.