mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/10325] add logout function in functional_test_case
PHPBB3-10325
This commit is contained in:
@@ -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
|
* Login to the ACP
|
||||||
* You must run login() before calling this.
|
* You must run login() before calling this.
|
||||||
|
Reference in New Issue
Block a user