diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-11-03 23:39:48 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-11-08 01:20:04 +0100 |
commit | bf7eab423edc9bde69c960bb182b8313be7d5e3a (patch) | |
tree | 602cd8e962884ec91f4cb872e2094963b2813483 /tests | |
parent | d17bf9aa273d8cd3dfb730b506f7aac2bd51a97a (diff) | |
download | forums-bf7eab423edc9bde69c960bb182b8313be7d5e3a.tar forums-bf7eab423edc9bde69c960bb182b8313be7d5e3a.tar.gz forums-bf7eab423edc9bde69c960bb182b8313be7d5e3a.tar.bz2 forums-bf7eab423edc9bde69c960bb182b8313be7d5e3a.tar.xz forums-bf7eab423edc9bde69c960bb182b8313be7d5e3a.zip |
[ticket/11994] Fix functional tests
PHPBB3-11994
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/extension_acp_test.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/functional/extension_acp_test.php b/tests/functional/extension_acp_test.php index 0cd03d8ccb..44bb895f67 100644 --- a/tests/functional/extension_acp_test.php +++ b/tests/functional/extension_acp_test.php @@ -170,8 +170,14 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=delete_data_pre&ext_name=test2&sid=' . $this->sid); $this->assertContains('The required file does not exist', $crawler->filter('.errorbox')->text()); + // foo is not disabled (redirect to list) + $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=delete_data_pre&ext_name=foo&sid=' . $this->sid); + $this->assertContainsLang('EXTENSION_NAME', $crawler->filter('div.main thead')->text()); + $this->assertContainsLang('EXTENSION_OPTIONS', $crawler->filter('div.main thead')->text()); + $this->assertContainsLang('EXTENSION_ACTIONS', $crawler->filter('div.main thead')->text()); + $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=delete_data_pre&ext_name=vendor%2Fmoo&sid=' . $this->sid); - $this->assertContains($this->lang('EXTENSION_DELETE_DATA_CONFIRM', 'phpBB Moo Extension'), $crawler->filter('.errorbox')->text()); + $this->assertContains('Are you sure that you wish to delete the data associated with “phpBB Moo Extension”?', $crawler->filter('.errorbox')->text()); } public function test_actions() |