diff options
author | Xheni Myrtaj <myrtajxheni@gmail.com> | 2019-05-30 14:50:07 +0200 |
---|---|---|
committer | Xheni Myrtaj <myrtajxheni@gmail.com> | 2019-05-30 14:50:07 +0200 |
commit | 7cb62653787860e15664c78dad9d3421e7c73f0e (patch) | |
tree | e0783e3cbd1855695efff3939947b83b2b12ec39 /tests | |
parent | 5fc047748327823212055c0b4103b5a5b2f26038 (diff) | |
download | nextcloud-server-7cb62653787860e15664c78dad9d3421e7c73f0e.tar.gz nextcloud-server-7cb62653787860e15664c78dad9d3421e7c73f0e.zip |
Fix checker test
Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/IntegrityCheck/CheckerTest.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/lib/IntegrityCheck/CheckerTest.php b/tests/lib/IntegrityCheck/CheckerTest.php index 91d1fa36758..f9695323b39 100644 --- a/tests/lib/IntegrityCheck/CheckerTest.php +++ b/tests/lib/IntegrityCheck/CheckerTest.php @@ -32,6 +32,7 @@ use OC\IntegrityCheck\Helpers\AppLocator; use OCP\IConfig; use OCP\ICacheFactory; use OCP\App\IAppManager; +use OCP\Files\IMimeTypeDetector; class CheckerTest extends TestCase { /** @var EnvironmentHelper|\PHPUnit_Framework_MockObject_MockObject */ @@ -48,6 +49,8 @@ class CheckerTest extends TestCase { private $cacheFactory; /** @var IAppManager|\PHPUnit_Framework_MockObject_MockObject */ private $appManager; + /** @var IMimeTypeDetector|\PHPUnit_Framework_MockObject_MockObject */ + private $mimeTypeDetector; public function setUp() { parent::setUp(); @@ -57,6 +60,7 @@ class CheckerTest extends TestCase { $this->config = $this->createMock(IConfig::class); $this->cacheFactory = $this->createMock(ICacheFactory::class); $this->appManager = $this->createMock(IAppManager::class); + $this->mimeTypeDetector = $this->createMock(IMimeTypeDetector::class); $this->config->method('getAppValue') ->will($this->returnArgument(2)); @@ -74,7 +78,8 @@ class CheckerTest extends TestCase { $this->config, $this->cacheFactory, $this->appManager, - \OC::$server->getTempManager() + \OC::$server->getTempManager(), + $this->mimeTypeDetector ); } @@ -1014,7 +1019,8 @@ class CheckerTest extends TestCase { $this->config, $this->cacheFactory, $this->appManager, - \OC::$server->getTempManager() + \OC::$server->getTempManager(), + $this->mimeTypeDetector, ]) ->setMethods([ 'verifyCoreSignature', |