aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/auth_test.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-06-06 17:21:01 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-06-06 17:21:01 -0500
commit6bc775a75bdb4d4984eba10fba253c4cc75542d1 (patch)
treee9a254aa34b872d99244d09e715a8b3371382ec7 /tests/functional/auth_test.php
parentb4b1704a9b2f2c6e7770f478e27c5c408772f3ff (diff)
parent1d7c80b91210337845ae33267131bb82473b9a9f (diff)
downloadforums-6bc775a75bdb4d4984eba10fba253c4cc75542d1.tar
forums-6bc775a75bdb4d4984eba10fba253c4cc75542d1.tar.gz
forums-6bc775a75bdb4d4984eba10fba253c4cc75542d1.tar.bz2
forums-6bc775a75bdb4d4984eba10fba253c4cc75542d1.tar.xz
forums-6bc775a75bdb4d4984eba10fba253c4cc75542d1.zip
Merge remote-tracking branch 'remotes/nickv/ticket/11568-develop' into develop
# By Joas Schilling # Via Joas Schilling * remotes/nickv/ticket/11568-develop: (21 commits) [ticket/11568] Split status code and html debug assertion into two methods [ticket/11568] Add comma at end of array key-value couple [ticket/11568] Invert logic for asserting the response [ticket/11568] Use static calls for static methods [ticket/develop/11568] Remove unneccessary second call with wrong arguments [ticket/11568] Remove unused method [ticket/11568] Only assert string when doctype is there at all [ticket/develop/11568] Fix some more tests in 3.1 [ticket/develop/11568] Remove php extension parameter [ticket/develop/11568] Remove unneccessary calls to assert_response_success() [ticket/develop/11568] Do not directly access $client from tests [ticket/11568] Add method to get page content [ticket/11568] Allow different status codes [ticket/11568] Trim the output to allow Tabs before INCLUDE overall_header [ticket/11568] Fix common_groups_test.php form handling [ticket/11568] Make CookieJar static aswell [ticket/11568] Remove manual calls to assert_response_success() [ticket/11568] Only use a static version of the client [ticket/11568] Any output before the doc type means there was an error [ticket/11568] Set client manually so we can increase the cURL timeout ...
Diffstat (limited to 'tests/functional/auth_test.php')
-rw-r--r--tests/functional/auth_test.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/functional/auth_test.php b/tests/functional/auth_test.php
index f92a4a2210..ff4d3ced5c 100644
--- a/tests/functional/auth_test.php
+++ b/tests/functional/auth_test.php
@@ -17,8 +17,7 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
$this->login();
// check for logout link
- $crawler = $this->request('GET', 'index.php');
- $this->assert_response_success();
+ $crawler = self::request('GET', 'index.php');
$this->assertContains($this->lang('LOGOUT_USER', 'admin'), $crawler->filter('.navbar')->text());
}
@@ -26,8 +25,7 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
{
$this->create_user('anothertestuser');
$this->login('anothertestuser');
- $crawler = $this->request('GET', 'index.php');
- $this->assert_response_success();
+ $crawler = self::request('GET', 'index.php');
$this->assertContains('anothertestuser', $crawler->filter('.icon-logout')->text());
}
@@ -40,13 +38,11 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
$this->add_lang('ucp');
// logout
- $crawler = $this->request('GET', 'ucp.php?sid=' . $this->sid . '&mode=logout');
- $this->assert_response_success();
+ $crawler = self::request('GET', 'ucp.php?sid=' . $this->sid . '&mode=logout');
$this->assertContains($this->lang('LOGOUT_REDIRECT'), $crawler->filter('#message')->text());
// look for a register link, which should be visible only when logged out
- $crawler = $this->request('GET', 'index.php');
- $this->assert_response_success();
+ $crawler = self::request('GET', 'index.php');
$this->assertContains($this->lang('REGISTER'), $crawler->filter('.navbar')->text());
}
@@ -56,8 +52,7 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
$this->admin_login();
// check that we are logged in
- $crawler = $this->request('GET', 'adm/index.php?sid=' . $this->sid);
- $this->assert_response_success();
+ $crawler = self::request('GET', 'adm/index.php?sid=' . $this->sid);
$this->assertContains($this->lang('ADMIN_PANEL'), $crawler->filter('h1')->text());
}
}