public function setUp() { parent::setUp(); $this->service = $this->getMockBuilder('\\OCA\\Files_external\\Service\\UserStoragesService')->disableOriginalConstructor()->getMock(); $this->service->method('getVisibilityType')->willReturn(BackendService::VISIBILITY_PERSONAL); $this->controller = new UserStoragesController('files_external', $this->getMock('\\OCP\\IRequest'), $this->getMock('\\OCP\\IL10N'), $this->service); }
public function tearDown() { $config = \OC::$server->getConfig(); $config->setAppValue('files_external', 'user_mounting_backends', $this->oldAllowedBackends); parent::tearDown(); }
public function setUp() { parent::setUp(); $this->service = $this->getMockBuilder('\\OCA\\Files_external\\Service\\UserStoragesService')->disableOriginalConstructor()->getMock(); $this->controller = new UserStoragesController('files_external', $this->getMock('\\OCP\\IRequest'), $this->getMock('\\OCP\\IL10N'), $this->service); }
public function setUp() { parent::setUp(); $this->service = $this->getMock('\\OCA\\Files_external\\Service\\GlobalStoragesService'); $this->controller = new GlobalStoragesController('files_external', $this->getMock('\\OCP\\IRequest'), $this->getMock('\\OCP\\IL10N'), $this->service); }