mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11202] Check response success before content assertions.
This does not change tests that perform requests which are either clearly not supposed to succeed or are a gray area. PHPBB3-11202
This commit is contained in:
parent
b9e1caa81a
commit
8917b31e31
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
|
|||
{
|
||||
$this->phpbb_extension_manager->enable('foobar');
|
||||
$crawler = $this->request('GET', 'index.php?ext=foobar');
|
||||
$this->assert_response_success();
|
||||
$this->assertContains("This is for testing purposes.", $crawler->filter('#page-body')->text());
|
||||
$this->phpbb_extension_manager->purge('foobar');
|
||||
}
|
||||
|
@ -94,6 +95,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
|
|||
{
|
||||
$this->phpbb_extension_manager->enable('foo/bar');
|
||||
$crawler = $this->request('GET', 'index.php?ext=foo/bar');
|
||||
$this->assert_response_success();
|
||||
$this->assertContains("This is for testing purposes.", $crawler->filter('#page-body')->text());
|
||||
$this->phpbb_extension_manager->purge('foo/bar');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue