[ticket/10325] add logout function in functional_test_case

PHPBB3-10325
This commit is contained in:
Dhruv 2013-04-25 22:52:40 +05:30
parent d242b7a1a5
commit 2fa5f9591e

View file

@ -425,6 +425,17 @@ class phpbb_functional_test_case extends phpbb_test_case
}
}
protected function logout()
{
$this->add_lang('ucp');
$crawler = $this->request('GET', 'ucp.php?sid=' . $this->sid . '&mode=logout');
$this->assert_response_success();
$this->assertContains($this->lang('LOGOUT_REDIRECT'), $crawler->filter('#message')->text());
unset($this->sid);
}
/**
* Login to the ACP
* You must run login() before calling this.