mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/9871] Fix tests
PHPBB3-9871
This commit is contained in:
parent
98542547e2
commit
c655757aa6
1 changed files with 11 additions and 3 deletions
|
@ -16,8 +16,16 @@ class phpbb_version_helper_test extends phpbb_test_case
|
||||||
{
|
{
|
||||||
parent::setUp();
|
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(
|
$this->version_helper = new \phpbb\version_helper(
|
||||||
new phpbb_mock_null_cache(),
|
$this->cache,
|
||||||
new \phpbb\config\config(array(
|
new \phpbb\config\config(array(
|
||||||
'version' => '3.1.0',
|
'version' => '3.1.0',
|
||||||
)),
|
)),
|
||||||
|
@ -190,7 +198,7 @@ class phpbb_version_helper_test extends phpbb_test_case
|
||||||
'get_versions_matching_stability',
|
'get_versions_matching_stability',
|
||||||
))
|
))
|
||||||
->setConstructorArgs(array(
|
->setConstructorArgs(array(
|
||||||
new phpbb_mock_null_cache(),
|
$this->cache,
|
||||||
new \phpbb\config\config(array(
|
new \phpbb\config\config(array(
|
||||||
'version' => $current_version,
|
'version' => $current_version,
|
||||||
)),
|
)),
|
||||||
|
@ -295,7 +303,7 @@ class phpbb_version_helper_test extends phpbb_test_case
|
||||||
'get_versions_matching_stability',
|
'get_versions_matching_stability',
|
||||||
))
|
))
|
||||||
->setConstructorArgs(array(
|
->setConstructorArgs(array(
|
||||||
new phpbb_mock_null_cache(),
|
$this->cache,
|
||||||
new \phpbb\config\config(array(
|
new \phpbb\config\config(array(
|
||||||
'version' => $current_version,
|
'version' => $current_version,
|
||||||
)),
|
)),
|
||||||
|
|
Loading…
Add table
Reference in a new issue