Select Git revision
autoload_classmap.php
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
UserCurrentFactoryTest.php 898 B
<?php
namespace UnicaenAppTest\View\Helper;
use UnicaenAppTest\View\Helper\BaseServiceFactoryTest;
/**
* Description of UserCurrentFactoryTest
*
* @author Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>
*/
class UserCurrentFactoryTest extends BaseServiceFactoryTest
{
protected $factoryClass = 'UnicaenAuth\View\Helper\UserCurrentFactory';
protected $serviceClass = 'UnicaenAuth\View\Helper\UserCurrent';
public function testCanCreateService()
{
$authService = $this->createMock('Zend\Authentication\AuthenticationService');
$this->serviceManager->expects($this->once())
->method('get')
->with('zfcuser_auth_service')
->will($this->returnValue($authService));
$service = $this->factory->__invoke($this->serviceManager, '');
$this->assertInstanceOf($this->serviceClass, $service);
}
}