Skip to content

Commit

Permalink
[ticket/12610] Fix tests
Browse files Browse the repository at this point in the history
PHPBB3-12610
  • Loading branch information
Tristan Darricau authored and Nicofuma committed Dec 3, 2016
1 parent 346f31a commit 376042d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/console/update/check_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,18 @@ public function get_command_tester($current_version)
{
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));

$cache = $this->getMockBuilder('\phpbb\cache\service')
->disableOriginalConstructor()
->getMock();

$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->set('version_helper', $this->version_helper);
Expand Down

0 comments on commit 376042d

Please sign in to comment.