mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-30 07:08:52 +00:00
[ticket/12610] Fix tests
PHPBB3-12610
This commit is contained in:
parent
346f31a031
commit
376042d845
1 changed files with 5 additions and 2 deletions
|
@ -76,7 +76,10 @@ class phpbb_console_command_check_test extends phpbb_test_case
|
||||||
{
|
{
|
||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
$user = $this->getMock('\phpbb\user');
|
$user = $this->getMock('\phpbb\user', array(), array(
|
||||||
|
new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx)),
|
||||||
|
'\phpbb\datetime'
|
||||||
|
));
|
||||||
$user->method('lang')->will($this->returnArgument(0));
|
$user->method('lang')->will($this->returnArgument(0));
|
||||||
|
|
||||||
$cache = $this->getMockBuilder('\phpbb\cache\service')
|
$cache = $this->getMockBuilder('\phpbb\cache\service')
|
||||||
|
@ -84,7 +87,7 @@ class phpbb_console_command_check_test extends phpbb_test_case
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
$config = new \phpbb\config\config(array('version' => $current_version));
|
$config = new \phpbb\config\config(array('version' => $current_version));
|
||||||
$this->version_helper = new \phpbb\version_helper($cache, $config, $user);
|
$this->version_helper = new \phpbb\version_helper($cache, $config, new \phpbb\file_downloader(), $user);
|
||||||
|
|
||||||
$container = new phpbb_mock_container_builder;
|
$container = new phpbb_mock_container_builder;
|
||||||
$container->set('version_helper', $this->version_helper);
|
$container->set('version_helper', $this->version_helper);
|
||||||
|
|
Loading…
Add table
Reference in a new issue