mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-15 05:04:09 +02:00
[ticket/11568] Allow different status codes
PHPBB3-11568
This commit is contained in:
@@ -462,9 +462,9 @@ class phpbb_functional_test_case extends phpbb_test_case
|
|||||||
*
|
*
|
||||||
* @return null
|
* @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();
|
$content = self::$client->getResponse()->getContent();
|
||||||
|
|
||||||
// Any output before the doc type means there was an error
|
// Any output before the doc type means there was an error
|
||||||
|
Reference in New Issue
Block a user