summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-20 23:12:45 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-01-20 23:12:45 -0600
commitd16051fa6fc33c76f7cba9ab5dca8131bd3a109a (patch)
tree82664a944f1c0ecb56548bb17b03f868de203aa2 /apps/files_external/tests
parent4253a9bde33b57270fcf2dd2a2a09ffe8d8dcb92 (diff)
downloadnextcloud-server-d16051fa6fc33c76f7cba9ab5dca8131bd3a109a.tar.gz
nextcloud-server-d16051fa6fc33c76f7cba9ab5dca8131bd3a109a.zip
fix test mocks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/Settings/SectionTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/tests/Settings/SectionTest.php b/apps/files_external/tests/Settings/SectionTest.php
index b5dfb28b382..ee501b1270b 100644
--- a/apps/files_external/tests/Settings/SectionTest.php
+++ b/apps/files_external/tests/Settings/SectionTest.php
@@ -25,19 +25,24 @@ namespace OCA\Files_External\Tests\Settings;
use OCA\Files_External\Settings\Section;
use OCP\IL10N;
+use OCP\IURLGenerator;
use Test\TestCase;
class SectionTest extends TestCase {
/** @var IL10N */
private $l;
+ /** @var IURLGenerator */
+ private $urlGenerator;
/** @var Section */
private $section;
public function setUp() {
parent::setUp();
+ $this->urlGenerator = $this->getMockBuilder('\OCP\IURLGenerator')->disableOriginalConstructor()->getMock();
$this->l = $this->getMockBuilder('\OCP\IL10N')->disableOriginalConstructor()->getMock();
$this->section = new Section(
+ $this->urlGenerator,
$this->l
);
}