aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/posting_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-05-27 22:12:50 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-05-27 23:10:07 +0200
commite77c8ee4ef745e69e7af06b69b3abd7412704b2f (patch)
treeb9d2d8f6f7ae95616c4a960d2b70d6d3910d3189 /tests/functional/posting_test.php
parent135139aca9bc9694397ad2bf4b7d7f9447ca033b (diff)
downloadforums-e77c8ee4ef745e69e7af06b69b3abd7412704b2f.tar
forums-e77c8ee4ef745e69e7af06b69b3abd7412704b2f.tar.gz
forums-e77c8ee4ef745e69e7af06b69b3abd7412704b2f.tar.bz2
forums-e77c8ee4ef745e69e7af06b69b3abd7412704b2f.tar.xz
forums-e77c8ee4ef745e69e7af06b69b3abd7412704b2f.zip
[ticket/11568] Remove manual calls to assert_response_success()
PHPBB3-11568
Diffstat (limited to 'tests/functional/posting_test.php')
-rw-r--r--tests/functional/posting_test.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/functional/posting_test.php b/tests/functional/posting_test.php
index d05207edf0..5cf7559245 100644
--- a/tests/functional/posting_test.php
+++ b/tests/functional/posting_test.php
@@ -30,7 +30,6 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
// Test quoting a message
$crawler = $this->request('GET', "posting.php?mode=quote&f=2&t={$post2['topic_id']}&p={$post2['post_id']}&sid={$this->sid}");
- $this->assert_response_success();
$this->assertContains('This is a test post posted by the testing framework.', $crawler->filter('html')->text());
}
@@ -95,7 +94,6 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
$this->add_lang('posting');
$crawler = $this->request('GET', $posting_url);
- $this->assert_response_success();
$this->assertContains($this->lang($posting_contains), $crawler->filter('html')->text());
$hidden_fields = array(
@@ -119,8 +117,7 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
// I use a request because the form submission method does not allow you to send data that is not
// contained in one of the actual form fields that the browser sees (i.e. it ignores "hidden" inputs)
// Instead, I send it as a request with the submit button "post" set to true.
- $crawler = $this->client->request('POST', $posting_url, $form_data);
- $this->assert_response_success();
+ $crawler = $this->request('POST', $posting_url, $form_data);
$this->assertContains($this->lang('POST_STORED'), $crawler->filter('html')->text());
$url = $crawler->selectLink($this->lang('VIEW_MESSAGE', '', ''))->link()->getUri();