mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:10:12 +00:00
Improve impossible exception-handler for storage move
This commit is contained in:
parent
14c97f7b62
commit
732992a296
2 changed files with 15 additions and 2 deletions
|
@ -265,4 +265,17 @@ class StorageManagerTest extends DatabaseTest
|
|||
$this->assertNotEmpty($data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test moving data to a WRONG storage
|
||||
*
|
||||
* @expectedException \Friendica\Model\Storage\StorageException
|
||||
* @expectedExceptionMessageRegExp /Can't move to storage backend '.*'/
|
||||
*/
|
||||
public function testMoveStorageWrong()
|
||||
{
|
||||
$storageManager = new StorageManager($this->dba, $this->config, $this->logger, $this->l10n);
|
||||
$storage = $storageManager->getByName(Storage\SystemResource::getName());
|
||||
$storageManager->move($storage);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue