Пример #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());
 }
Пример #2
0
 public function saveGlobalCredentials($uid, $user, $password)
 {
     $this->globalAuth->saveAuth($uid, $user, $password);
     return true;
 }