diff options
Diffstat (limited to 'tests/lib/App/InfoParserTest.php')
-rw-r--r-- | tests/lib/App/InfoParserTest.php | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/tests/lib/App/InfoParserTest.php b/tests/lib/App/InfoParserTest.php index 7f52507bcf7..af2dfd2ef1c 100644 --- a/tests/lib/App/InfoParserTest.php +++ b/tests/lib/App/InfoParserTest.php @@ -10,27 +10,16 @@ namespace Test\App; use OC; -use OCP\IURLGenerator; +use OC\App\InfoParser; use Test\TestCase; class InfoParserTest extends TestCase { - /** @var \OC\App\InfoParser */ + /** @var InfoParser */ private $parser; public function setUp() { - $urlGenerator = $this->getMockBuilder('\OCP\IURLGenerator') - ->disableOriginalConstructor() - ->getMock(); - - /** @var IURLGenerator | \PHPUnit_Framework_MockObject_MockObject $urlGenerator */ - $urlGenerator->expects($this->any()) - ->method('linkToDocs') - ->will($this->returnCallback(function ($url) { - return "https://docs.example.com/server/go.php?to=$url"; - })); - - $this->parser = new \OC\App\InfoParser($urlGenerator); + $this->parser = new InfoParser(); } /** |