1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/11568] Allow different status codes

PHPBB3-11568
This commit is contained in:
Joas Schilling 2013-05-28 14:38:28 +02:00
parent 3d6620f0db
commit 0dd1bbf084

View File

@ -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