コード例 #1
0
ファイル: globalauth.php プロジェクト: ZverAleksey/core
 /**
  * @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
ファイル: ajaxcontroller.php プロジェクト: farukuzun/core-1
 public function saveGlobalCredentials($uid, $user, $password)
 {
     $this->globalAuth->saveAuth($uid, $user, $password);
     return true;
 }