/** * @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()); }
public function saveGlobalCredentials($uid, $user, $password) { $this->globalAuth->saveAuth($uid, $user, $password); return true; }