Ejemplo n.º 1
0
 /**
  * @expectedException \OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException
  */
 public function testNoCredentialsPersonal()
 {
     $this->credentialsManager->expects($this->never())->method('retrieve');
     $storage = $this->getStorageConfig(StorageConfig::MOUNT_TYPE_PERSONAl);
     $this->instance->manipulateStorageConfig($storage);
     $this->assertEquals([], $storage->getBackendOptions());
 }
Ejemplo n.º 2
0
 public function saveGlobalCredentials($uid, $user, $password)
 {
     $this->globalAuth->saveAuth($uid, $user, $password);
     return true;
 }