summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Storage
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-01-24 18:10:16 +0100
committerJoas Schilling <coding@schilljs.com>2018-01-24 18:10:16 +0100
commit870023365c928e6bc3bd39d0d7f9b4d976dad33e (patch)
tree74c1438392d2101c154a80d4f4b9d4777c77bd1a /tests/lib/Files/Storage
parentc3424df1f026854ed8adbfdf8d96da7a6562a8dd (diff)
downloadnextcloud-server-870023365c928e6bc3bd39d0d7f9b4d976dad33e.tar.gz
nextcloud-server-870023365c928e6bc3bd39d0d7f9b4d976dad33e.zip
Fix "Undefined method setExpectedException()"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Files/Storage')
-rw-r--r--tests/lib/Files/Storage/Wrapper/EncryptionTest.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
index c184752ff7e..5bcff56e373 100644
--- a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
+++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
@@ -719,9 +719,7 @@ class EncryptionTest extends Storage {
}
public function testCopyBetweenStorageMinimumEncryptedVersion() {
- $storage2 = $this->getMockBuilder(Storage::class)
- ->disableOriginalConstructor()
- ->getMock();
+ $storage2 = $this->createMock(\OC\Files\Storage\Storage::class);
$sourceInternalPath = $targetInternalPath = 'file.txt';
$preserveMtime = $isRename = false;
@@ -768,9 +766,7 @@ class EncryptionTest extends Storage {
* @param bool $expectedEncrypted
*/
public function testCopyBetweenStorage($encryptionEnabled, $mountPointEncryptionEnabled, $expectedEncrypted) {
- $storage2 = $this->getMockBuilder(Storage::class)
- ->disableOriginalConstructor()
- ->getMock();
+ $storage2 = $this->createMock(\OC\Files\Storage\Storage::class);
$sourceInternalPath = $targetInternalPath = 'file.txt';
$preserveMtime = $isRename = false;
@@ -830,13 +826,9 @@ class EncryptionTest extends Storage {
*/
public function testCopyBetweenStorageVersions($sourceInternalPath, $targetInternalPath, $copyResult, $encrypted) {
- $sourceStorage = $this->getMockBuilder(Storage::class)
- ->disableOriginalConstructor()
- ->getMock();
+ $sourceStorage = $this->createMock(\OC\Files\Storage\Storage::class);
- $targetStorage = $this->getMockBuilder(Storage::class)
- ->disableOriginalConstructor()
- ->getMock();
+ $targetStorage = $this->createMock(\OC\Files\Storage\Storage::class);
$cache = $this->getMockBuilder('\OC\Files\Cache\Cache')
->disableOriginalConstructor()->getMock();