diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-01-20 23:12:45 -0600 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-01-20 23:12:45 -0600 |
commit | d16051fa6fc33c76f7cba9ab5dca8131bd3a109a (patch) | |
tree | 82664a944f1c0ecb56548bb17b03f868de203aa2 /apps/files_external/tests | |
parent | 4253a9bde33b57270fcf2dd2a2a09ffe8d8dcb92 (diff) | |
download | nextcloud-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.php | 5 |
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 ); } |