fix test mocks

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-01-20 23:12:45 -06:00
parent 4253a9bde3
commit d16051fa6f
No known key found for this signature in database
GPG key ID: 9CE5ED29E7FCD38A

View file

@ -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
);
}