Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias <ilovemilk@wusa.io>2020-03-28 13:35:45 +0300
committerMatthias <ilovemilk@wusa.io>2020-03-28 13:35:45 +0300
commit2426ca27eb4d89d7b44daad776806ffb47539f3b (patch)
treeb371dcfa5019bd75544f35cee5c3e8b4bff1bded
parentc12fb9fddee340bebfef93e4d32efbe874f45059 (diff)
add storage constructor argumentsfeature/nextcloud-18-compatibility
-rw-r--r--tests/Unit/CacheWrapperTest.php1
-rw-r--r--tests/Unit/StorageWrapperTest.php1
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')