diff options
| author | Dhruv <dhruv.goel92@gmail.com> | 2014-06-23 21:23:47 +0530 |
|---|---|---|
| committer | Dhruv <dhruv.goel92@gmail.com> | 2014-06-23 21:23:47 +0530 |
| commit | 2147a5eba5020b9f602b232da6a1f138479f77fa (patch) | |
| tree | 78ff99edef545d32533ac77593da158f19517465 | |
| parent | f0e115fdccad7b4636d506ec5ed85a8eca301317 (diff) | |
| download | forums-2147a5eba5020b9f602b232da6a1f138479f77fa.tar forums-2147a5eba5020b9f602b232da6a1f138479f77fa.tar.gz forums-2147a5eba5020b9f602b232da6a1f138479f77fa.tar.bz2 forums-2147a5eba5020b9f602b232da6a1f138479f77fa.tar.xz forums-2147a5eba5020b9f602b232da6a1f138479f77fa.zip | |
[ticket/11528] Handle case when config file cant be written by installer
PHPBB3-11528
| -rw-r--r-- | tests/test_framework/phpbb_mink_test_case.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_framework/phpbb_mink_test_case.php b/tests/test_framework/phpbb_mink_test_case.php index 93b7beea99..89042e46c1 100644 --- a/tests/test_framework/phpbb_mink_test_case.php +++ b/tests/test_framework/phpbb_mink_test_case.php @@ -138,7 +138,6 @@ abstract class phpbb_mink_test_case extends phpbb_test_case // install/index.php?mode=install&sub=config_file $page = self::click_submit(); - self::assertContains('The configuration file has been written', $page->findById('main')->getText()); // Installer has created a config.php file, we will overwrite it with a // config file of our own in order to get the DEBUG constants defined @@ -149,6 +148,12 @@ abstract class phpbb_mink_test_case extends phpbb_test_case self::markTestSkipped("Could not write $config_file file."); } + if (strpos($page->findById('main')->getText(), 'The configuration file has been written') === false) + { + $page = self::click_submit('dldone'); + } + self::assertContains('The configuration file has been written', $page->findById('main')->getText()); + // install/index.php?mode=install&sub=advanced $page = self::click_submit(); self::assertContains('The settings on this page are only necessary to set if you know that you require something different from the default.', $page->findById('main')->getText()); |
