mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11450] Add test for unexisting composer.json
PHPBB3-11450
This commit is contained in:
parent
269c2ce98d
commit
0de153d903
1 changed files with 10 additions and 1 deletions
|
@ -88,7 +88,7 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case
|
||||||
$this->assertContains('Details', $this->client->getResponse()->getContent());
|
$this->assertContains('Details', $this->client->getResponse()->getContent());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_permissions_tab()
|
public function test_extensions_details()
|
||||||
{
|
{
|
||||||
$crawler = $this->request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=details&ext_name=foo%2Fbar&sid=' . $this->sid);
|
$crawler = $this->request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=details&ext_name=foo%2Fbar&sid=' . $this->sid);
|
||||||
$this->assert_response_success();
|
$this->assert_response_success();
|
||||||
|
@ -101,4 +101,13 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case
|
||||||
$this->assertContains($this->lang('PHP_VERSION'), $this->client->getResponse()->getContent());
|
$this->assertContains($this->lang('PHP_VERSION'), $this->client->getResponse()->getContent());
|
||||||
$this->assertContains('>=5.3', $this->client->getResponse()->getContent());
|
$this->assertContains('>=5.3', $this->client->getResponse()->getContent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_extensions_details_notexists()
|
||||||
|
{
|
||||||
|
$crawler = $this->request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=details&ext_name=not%2Fexists&sid=' . $this->sid);
|
||||||
|
$this->assert_response_success();
|
||||||
|
|
||||||
|
// Error message because the files do not exist
|
||||||
|
$this->assertContains('The required file does not exist:', $this->client->getResponse()->getContent());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue