diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 20:24:06 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 20:42:38 +0200 |
commit | 80c519fe89857cfead7344025f2123e3b69665a8 (patch) | |
tree | 67aef1d1c9cec3e63a22fc14e863fc606e9438b0 /tests/lib/Share20/ShareTest.php | |
parent | 65409f53274e6dbbfdcac1726546b9fd32c99677 (diff) | |
download | nextcloud-server-80c519fe89857cfead7344025f2123e3b69665a8.tar.gz nextcloud-server-80c519fe89857cfead7344025f2123e3b69665a8.zip |
Fix getMock Share
Diffstat (limited to 'tests/lib/Share20/ShareTest.php')
-rw-r--r-- | tests/lib/Share20/ShareTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/Share20/ShareTest.php b/tests/lib/Share20/ShareTest.php index 91bd2fe84b6..fbdf8e5c15b 100644 --- a/tests/lib/Share20/ShareTest.php +++ b/tests/lib/Share20/ShareTest.php @@ -21,6 +21,7 @@ namespace Test\Share20; use OCP\Files\IRootFolder; +use OCP\IUserManager; /** * Class ShareTest @@ -35,8 +36,8 @@ class ShareTest extends \Test\TestCase { protected $share; public function setUp() { - $this->rootFolder = $this->getMock('\OCP\Files\IRootFolder'); - $this->userManager = $this->getMock('OCP\IUserManager'); + $this->rootFolder = $this->createMock(IRootFolder::class); + $this->userManager = $this->createMock(IUserManager::class); $this->share = new \OC\Share20\Share($this->rootFolder, $this->userManager); } |