/**
  * @expectedException \OCA\Files_external\NotFoundException
  */
 public function testNonExistingStorage()
 {
     $storage = new StorageConfig(255);
     $storage->setMountPoint('mountpoint');
     $storage->setBackendClass('\\OC\\Files\\Storage\\SMB');
     $this->service->updateStorage($storage);
 }
Exemple #2
0
 /**
  * @expectedException \OCA\Files_external\NotFoundException
  */
 public function testNonExistingStorage()
 {
     $backend = $this->backendService->getBackend('identifier:\\OCA\\Files_External\\Lib\\Backend\\SMB');
     $authMechanism = $this->backendService->getAuthMechanism('identifier:\\Auth\\Mechanism');
     $storage = new StorageConfig(255);
     $storage->setMountPoint('mountpoint');
     $storage->setBackend($backend);
     $storage->setAuthMechanism($authMechanism);
     $this->service->updateStorage($storage);
 }