aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_framework')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index a0dceb152b..f1d282311f 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -83,11 +83,11 @@ class phpbb_functional_test_case extends phpbb_test_case
* @param bool $skip_assert_response_success Should we skip the basic response assertions?
* @return Symfony\Component\DomCrawler\Crawler
*/
- static public function request($method, $path, $form_data = array(), $skip_assert_response_success = false)
+ static public function request($method, $path, $form_data = array(), $assert_response_success = true)
{
$crawler = self::$client->request($method, self::$root_url . $path, $form_data);
- if (!$skip_assert_response_success)
+ if ($assert_response_success)
{
self::assert_response_success();
}
@@ -103,11 +103,11 @@ class phpbb_functional_test_case extends phpbb_test_case
* @param bool $skip_assert_response_success Should we skip the basic response assertions?
* @return Symfony\Component\DomCrawler\Crawler
*/
- static public function submit(Symfony\Component\DomCrawler\Form $form, array $values = array(), $skip_assert_response_success = false)
+ static public function submit(Symfony\Component\DomCrawler\Form $form, array $values = array(), $assert_response_success = true)
{
$crawler = self::$client->submit($form, $values);
- if (!$skip_assert_response_success)
+ if ($assert_response_success)
{
self::assert_response_success();
}