Inheritance: implements eZ\Publish\Core\MVC\Symfony\Security\User\APIUserProviderInterface
Beispiel #1
0
 public function testLoadUserByAPIUser()
 {
     $apiUser = $this->getMock('eZ\\Publish\\API\\Repository\\Values\\User\\User');
     $user = $this->userProvider->loadUserByAPIUser($apiUser);
     $this->assertInstanceOf('eZ\\Publish\\Core\\MVC\\Symfony\\Security\\User', $user);
     $this->assertSame($apiUser, $user->getAPIUser());
 }