Пример #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);
 }
Пример #2
0
 public function tearDown()
 {
     $config = \OC::$server->getConfig();
     $config->setAppValue('files_external', 'user_mounting_backends', $this->oldAllowedBackends);
     parent::tearDown();
 }
Пример #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);
 }
 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);
 }