]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix getMock checkertest
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:07:44 +0000 (20:07 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:42:37 +0000 (20:42 +0200)
tests/lib/IntegrityCheck/CheckerTest.php

index 6e6095668b06fc5eed1023180fefb85af664188d..d67f1382dc9fbecc7d3f9e7597546786aa4ef61e 100644 (file)
@@ -51,12 +51,12 @@ class CheckerTest extends TestCase {
 
        public function setUp() {
                parent::setUp();
-               $this->environmentHelper = $this->getMock('\OC\IntegrityCheck\Helpers\EnvironmentHelper');
-               $this->fileAccessHelper = $this->getMock('\OC\IntegrityCheck\Helpers\FileAccessHelper');
-               $this->appLocator = $this->getMock('\OC\IntegrityCheck\Helpers\AppLocator');
-               $this->config = $this->getMock('\OCP\IConfig');
-               $this->cacheFactory = $this->getMock('\OCP\ICacheFactory');
-               $this->appManager = $this->getMock('\OCP\App\IAppManager');
+               $this->environmentHelper = $this->createMock(EnvironmentHelper::class);
+               $this->fileAccessHelper = $this->createMock(FileAccessHelper::class);
+               $this->appLocator = $this->createMock(AppLocator::class);
+               $this->config = $this->createMock(IConfig::class);
+               $this->cacheFactory = $this->createMock(ICacheFactory::class);
+               $this->appManager = $this->createMock(IAppManager::class);
 
                $this->cacheFactory
                        ->expects($this->any())