diff options
author | Matthias <ilovemilk@wusa.io> | 2020-03-28 13:35:45 +0300 |
---|---|---|
committer | Matthias <ilovemilk@wusa.io> | 2020-03-28 13:35:45 +0300 |
commit | 2426ca27eb4d89d7b44daad776806ffb47539f3b (patch) | |
tree | b371dcfa5019bd75544f35cee5c3e8b4bff1bded /tests | |
parent | c12fb9fddee340bebfef93e4d32efbe874f45059 (diff) |
add storage constructor argumentsfeature/nextcloud-18-compatibility
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/CacheWrapperTest.php | 1 | ||||
-rw-r--r-- | tests/Unit/StorageWrapperTest.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/Unit/CacheWrapperTest.php b/tests/Unit/CacheWrapperTest.php index b7b7a6f..e23e3f1 100644 --- a/tests/Unit/CacheWrapperTest.php +++ b/tests/Unit/CacheWrapperTest.php @@ -42,6 +42,7 @@ class CacheWrapperTest extends TestCase $this->cache = $this->getMockBuilder('OCP\Files\Cache\ICache') ->getMock(); $this->storage = $this->getMockBuilder('OCP\Files\Storage\IStorage') + ->setConstructorArgs([array()]) ->getMock(); $this->monitor = $this->getMockBuilder('OCA\RansomwareDetection\Monitor') ->disableOriginalConstructor() diff --git a/tests/Unit/StorageWrapperTest.php b/tests/Unit/StorageWrapperTest.php index 24d1833..b3b2f23 100644 --- a/tests/Unit/StorageWrapperTest.php +++ b/tests/Unit/StorageWrapperTest.php @@ -37,6 +37,7 @@ class StorageWrapperTest extends TestCase parent::setUp(); $this->storage = $this->getMockBuilder('OCP\Files\Storage\IStorage') + ->setConstructorArgs([array()]) ->getMock(); $this->monitor = $this->getMockBuilder('OCA\RansomwareDetection\Monitor') |