Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public function tearDown()
 {
     $config = \OC::$server->getConfig();
     $config->setAppValue('files_external', 'user_mounting_backends', $this->oldAllowedBackends);
     parent::tearDown();
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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);
 }