aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2016-02-12 15:53:36 +0100
committerMate Bartus <mate.bartus@gmail.com>2016-02-12 15:53:36 +0100
commit97d128a7e4702b5a28b223b177a0e182e3b79080 (patch)
tree5bbb4b79b23d7490aa040fcb8a746f325e911eb9 /tests
parent7c0fb563ec995d0d1fcb24d885a7d9d18838ed9c (diff)
downloadforums-97d128a7e4702b5a28b223b177a0e182e3b79080.tar
forums-97d128a7e4702b5a28b223b177a0e182e3b79080.tar.gz
forums-97d128a7e4702b5a28b223b177a0e182e3b79080.tar.bz2
forums-97d128a7e4702b5a28b223b177a0e182e3b79080.tar.xz
forums-97d128a7e4702b5a28b223b177a0e182e3b79080.zip
[ticket/14462] Fix tests
PHPBB3-14462
Diffstat (limited to 'tests')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php10
-rw-r--r--tests/test_framework/phpbb_ui_test_case.php10
2 files changed, 14 insertions, 6 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index 5083e7bdfa..53519617b3 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -372,11 +372,15 @@ class phpbb_functional_test_case extends phpbb_test_case
self::$install_success = true;
- if (file_exists($phpbb_root_path . 'cache/install_lock') || file_exists($phpbb_root_path . 'store/install_config.php'))
+ if (file_exists($phpbb_root_path . 'store/install_config.php'))
{
self::$install_success = false;
- unlink($phpbb_root_path . 'cache/install_lock');
- unlink($phpbb_root_path . 'store/install_config.php');
+ @unlink($phpbb_root_path . 'store/install_config.php');
+ }
+
+ if (file_exists($phpbb_root_path . 'cache/install_lock'))
+ {
+ @unlink($phpbb_root_path . 'cache/install_lock');
}
global $phpbb_container, $cache, $phpbb_dispatcher, $request, $user, $auth, $db, $config, $phpbb_log, $symfony_request, $phpbb_filesystem, $phpbb_path_helper, $phpbb_extension_manager, $template;
diff --git a/tests/test_framework/phpbb_ui_test_case.php b/tests/test_framework/phpbb_ui_test_case.php
index 9cbac0ce47..3aec2a19f4 100644
--- a/tests/test_framework/phpbb_ui_test_case.php
+++ b/tests/test_framework/phpbb_ui_test_case.php
@@ -223,11 +223,15 @@ class phpbb_ui_test_case extends phpbb_test_case
self::$install_success = true;
- if (file_exists($phpbb_root_path . 'cache/install_lock') || file_exists($phpbb_root_path . 'store/install_config.php'))
+ if (file_exists($phpbb_root_path . 'store/install_config.php'))
{
self::$install_success = false;
- unlink($phpbb_root_path . 'cache/install_lock');
- unlink($phpbb_root_path . 'store/install_config.php');
+ @unlink($phpbb_root_path . 'store/install_config.php');
+ }
+
+ if (file_exists($phpbb_root_path . 'cache/install_lock'))
+ {
+ @unlink($phpbb_root_path . 'cache/install_lock');
}
global $phpbb_container, $cache, $phpbb_dispatcher, $request, $user, $auth, $db, $config, $phpbb_log, $symfony_request, $phpbb_filesystem, $phpbb_path_helper, $phpbb_extension_manager, $template;