mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
fix test mocks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
4253a9bde3
commit
d16051fa6f
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue