[ticket/331] Specify datetime class in tests

This commit is contained in:
Marc Alexander
2014-08-17 14:37:40 +02:00
parent dfc78cafd6
commit 85d4d85ee5
6 changed files with 7 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ class listener_test extends \phpbb_template_template_test_case
public function setup_listener()
{
$this->user = $this->getMock('\phpbb\user');
$this->user = $this->getMock('\phpbb\user', array(), array('\phpbb\datetime'));
$this->user->expects($this->any())
->method('lang')
->will($this->returnValue('foo'));