mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Use ACL service provider to get user's ACL
This commit is contained in:
@@ -90,10 +90,15 @@ class AuthenticatorTest extends \PhraseanetPHPUnitAbstract
|
||||
->method('get_granted_sbas')
|
||||
->will($this->returnValue(array()));
|
||||
|
||||
$user->expects($this->once())
|
||||
->method('ACL')
|
||||
$aclProvider = $this->getMockBuilder('Alchemy\Phrasea\Authentication\ACLProvider')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
$aclProvider->expects($this->any())
|
||||
->method('get')
|
||||
->will($this->returnValue($acl));
|
||||
|
||||
$app['acl'] = $aclProvider;
|
||||
|
||||
$em->expects($this->at(0))
|
||||
->method('persist')
|
||||
->with($this->isInstanceOf('Alchemy\Phrasea\Model\Entities\Session'))
|
||||
|
Reference in New Issue
Block a user