mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 19:13:26 +00:00
20 lines
501 B
PHP
20 lines
501 B
PHP
<?php
|
|
|
|
/**
|
|
* @group functional
|
|
* @group legacy
|
|
*/
|
|
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;
|
|
}
|
|
}
|