Skip to content
Snippets Groups Projects
Select Git revision
  • f5f83929bb690cdfc88fc38778ee9ed97c0b2d97
  • master default protected
  • php84
  • detached7
  • detached6
  • detached5
  • detached
  • detached2
  • detached3
  • detached4
  • 4.x
  • origin/1.0.3
  • origin/1.0.2
  • 6.1.0
  • 6.0.6
  • 6.0.5
  • 6.0.4
  • 6.0.3
  • 6.0.2
  • 6.0.1
  • 6.0.0
  • 4.0.3
  • 4.0.2
  • 4.0.1
  • 4.0
  • 3.1.7
  • 3.1.6
  • 3.1.5
  • 3.1.4
  • 3.1.3
  • 3.1.2
  • 3.1.1
  • 3.1.0
33 results

autoload_classmap.php

Blame
  • 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);
        }
    }