diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2014-03-08 17:43:58 -0600 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2014-03-08 17:43:58 -0600 |
commit | c655757aa635ced42db1f00023aadf423d37bbff (patch) | |
tree | c5dae8ecc7a62e63fc8ca3ea977a103c2d8a02ff /tests/version/version_test.php | |
parent | 98542547e2b0416f0f11bc1d75e5d999ae0d9f2b (diff) | |
download | forums-c655757aa635ced42db1f00023aadf423d37bbff.tar forums-c655757aa635ced42db1f00023aadf423d37bbff.tar.gz forums-c655757aa635ced42db1f00023aadf423d37bbff.tar.bz2 forums-c655757aa635ced42db1f00023aadf423d37bbff.tar.xz forums-c655757aa635ced42db1f00023aadf423d37bbff.zip |
[ticket/9871] Fix tests
PHPBB3-9871
Diffstat (limited to 'tests/version/version_test.php')
-rw-r--r-- | tests/version/version_test.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/version/version_test.php b/tests/version/version_test.php index 3ac2b46b0d..87922d50b4 100644 --- a/tests/version/version_test.php +++ b/tests/version/version_test.php @@ -16,8 +16,16 @@ class phpbb_version_helper_test extends phpbb_test_case { parent::setUp(); + global $phpbb_root_path, $phpEx; + + include_once($phpbb_root_path . 'includes/functions.' . $phpEx); + + $this->cache = $this->getMockBuilder('\phpbb\cache\service') + ->disableOriginalConstructor() + ->getMock(); + $this->version_helper = new \phpbb\version_helper( - new phpbb_mock_null_cache(), + $this->cache, new \phpbb\config\config(array( 'version' => '3.1.0', )), @@ -190,7 +198,7 @@ class phpbb_version_helper_test extends phpbb_test_case 'get_versions_matching_stability', )) ->setConstructorArgs(array( - new phpbb_mock_null_cache(), + $this->cache, new \phpbb\config\config(array( 'version' => $current_version, )), @@ -295,7 +303,7 @@ class phpbb_version_helper_test extends phpbb_test_case 'get_versions_matching_stability', )) ->setConstructorArgs(array( - new phpbb_mock_null_cache(), + $this->cache, new \phpbb\config\config(array( 'version' => $current_version, )), |