From 55fcffd11a02c3c9c75923e7912ee952bf348cab Mon Sep 17 00:00:00 2001 From: Jonas Meurer Date: Tue, 10 Aug 2021 11:06:24 +0200 Subject: Use IURLGenerator function to get value of `\OC::$WEBROOT` global Signed-off-by: Jonas Meurer --- tests/lib/UrlGeneratorTest.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/lib') diff --git a/tests/lib/UrlGeneratorTest.php b/tests/lib/UrlGeneratorTest.php index dd2eb2ddc63..761f4b42eea 100644 --- a/tests/lib/UrlGeneratorTest.php +++ b/tests/lib/UrlGeneratorTest.php @@ -179,6 +179,12 @@ class UrlGeneratorTest extends \Test\TestCase { $this->assertEquals($expected, $actual); } + public function testGetWebroot() { + \OC::$WEBROOT = '/nextcloud'; + $actual = $this->urlGenerator->getWebroot(); + $this->assertEquals(\OC::$WEBROOT, $actual); + } + /** * @dataProvider provideOCSRoutes */ -- cgit v1.2.3