aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller/ApiControllerTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-06 14:18:57 +0200
committerGitHub <noreply@github.com>2016-09-06 14:18:57 +0200
commit6a6af86a1ca14e8b803d7cd8653733842e21d25f (patch)
tree37af6b38deb4ead471847261355dc9ef72287231 /apps/files/tests/Controller/ApiControllerTest.php
parent45a84f362333e8055227ea800bf67a8ea431f3d5 (diff)
parentc609e291bd5dce6976defc0537cdf48a3cc3528b (diff)
downloadnextcloud-server-6a6af86a1ca14e8b803d7cd8653733842e21d25f.tar.gz
nextcloud-server-6a6af86a1ca14e8b803d7cd8653733842e21d25f.zip
Merge pull request #1242 from nextcloud/bump_phpunit
Bump phpunit
Diffstat (limited to 'apps/files/tests/Controller/ApiControllerTest.php')
-rw-r--r--apps/files/tests/Controller/ApiControllerTest.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files/tests/Controller/ApiControllerTest.php b/apps/files/tests/Controller/ApiControllerTest.php
index 348150e0e08..9bfc6d6f5e8 100644
--- a/apps/files/tests/Controller/ApiControllerTest.php
+++ b/apps/files/tests/Controller/ApiControllerTest.php
@@ -30,6 +30,9 @@ use OC\Files\FileInfo;
use OCP\AppFramework\Http;
use OCP\Files\NotFoundException;
use OCP\Files\StorageNotAvailableException;
+use OCP\IConfig;
+use OCP\IUser;
+use OCP\IUserSession;
use Test\TestCase;
use OCP\IRequest;
use OCA\Files\Service\TagService;
@@ -66,11 +69,11 @@ class ApiControllerTest extends TestCase {
$this->request = $this->getMockBuilder('\OCP\IRequest')
->disableOriginalConstructor()
->getMock();
- $this->user = $this->getMock('\OCP\IUser');
+ $this->user = $this->createMock(IUser::class);
$this->user->expects($this->any())
->method('getUID')
->will($this->returnValue('user1'));
- $userSession = $this->getMock('\OCP\IUserSession');
+ $userSession = $this->createMock(IUserSession::class);
$userSession->expects($this->any())
->method('getUser')
->will($this->returnValue($this->user));
@@ -83,7 +86,7 @@ class ApiControllerTest extends TestCase {
$this->preview = $this->getMockBuilder('\OCP\IPreview')
->disableOriginalConstructor()
->getMock();
- $this->config = $this->getMock('\OCP\IConfig');
+ $this->config = $this->createMock(IConfig::class);
$this->userFolder = $this->getMockBuilder('\OC\Files\Node\Folder')
->disableOriginalConstructor()
->getMock();