mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
16 lines
455 B
PHP
16 lines
455 B
PHP
<?php
|
|
|
|
class report_abstractReportTestCase extends \PhraseanetTestCase
|
|
{
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
|
|
$mock = $this->getMockBuilder('Alchemy\Phrasea\Authentication\Authenticator')->disableOriginalConstructor()->setMethods(array('getUser'))->getMock();
|
|
|
|
$mock->expects($this->any())->method('getUser')->will($this->returnValue(self::$DI['user']));
|
|
|
|
self::$DI['app']['authentication'] = $mock;
|
|
}
|
|
}
|