mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11568] Allow different status codes
PHPBB3-11568
This commit is contained in:
parent
3d6620f0db
commit
0dd1bbf084
1 changed files with 2 additions and 2 deletions
|
@ -462,9 +462,9 @@ class phpbb_functional_test_case extends phpbb_test_case
|
|||
*
|
||||
* @return null
|
||||
*/
|
||||
static public function assert_response_success()
|
||||
static public function assert_response_success($status_code = 200)
|
||||
{
|
||||
self::assertEquals(200, self::$client->getResponse()->getStatus());
|
||||
self::assertEquals($status_code, self::$client->getResponse()->getStatus());
|
||||
$content = self::$client->getResponse()->getContent();
|
||||
|
||||
// Any output before the doc type means there was an error
|
||||
|
|
Loading…
Add table
Reference in a new issue