1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 04:30:29 +01:00

[ticket/9871] Fix tests

PHPBB3-9871
This commit is contained in:
Nathan Guse 2014-03-08 17:43:58 -06:00
parent 98542547e2
commit c655757aa6

View File

@ -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,
)),