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:
Diffstat (limited to 'tests/Unit/CacheWrapperTest.php')
-rw-r--r--tests/Unit/CacheWrapperTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Unit/CacheWrapperTest.php b/tests/Unit/CacheWrapperTest.php
index f5dd2fe..e23e3f1 100644
--- a/tests/Unit/CacheWrapperTest.php
+++ b/tests/Unit/CacheWrapperTest.php
@@ -35,13 +35,14 @@ class CacheWrapperTest extends TestCase
/** @var \OCA\RansomwareDetection\Monitor\Operation|\PHPUnit_Framework_MockObject_MockObject */
protected $monitor;
- protected function setUp()
+ public function setUp(): void
{
parent::setUp();
$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()