[ticket/331] Specify datetime class in tests
This commit is contained in:
1 parent
dfc78cafd6
commit
85d4d85ee5
6 files changed
+7
-8
No files matched your search
@@ -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'));
|
||||
|
||||
Reference in new issue
Block a user