protected function setUp() { $this->cache = $this->getMockForAbstractClass('Doctrine\\Common\\Cache\\CacheProvider', [], '', false, true, true, ['fetch', 'save', 'delete', 'deleteAll']); $this->loader = $this->createMock('Oro\\Bundle\\SecurityBundle\\Annotation\\Loader\\AclAnnotationLoaderInterface'); $this->provider = new AclAnnotationProvider($this->cache); $this->provider->addLoader($this->loader); }