diff options
author | Jonas Meurer <jonas@freesources.org> | 2021-08-10 11:06:24 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-08-16 13:12:47 +0000 |
commit | d528243c0cba7d1dcb13a6dc75a28a9af8ff8e36 (patch) | |
tree | 04967923df3c466ca70a35950bb66f1e8eb216a8 /tests/lib/UrlGeneratorTest.php | |
parent | 7ddfd4dbc2d5b5101cc483f762f5939fbaa42af4 (diff) | |
download | nextcloud-server-d528243c0cba7d1dcb13a6dc75a28a9af8ff8e36.tar.gz nextcloud-server-d528243c0cba7d1dcb13a6dc75a28a9af8ff8e36.zip |
Use IURLGenerator function to get value of `\OC::$WEBROOT` global
Signed-off-by: Jonas Meurer <jonas@freesources.org>
Diffstat (limited to 'tests/lib/UrlGeneratorTest.php')
-rw-r--r-- | tests/lib/UrlGeneratorTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |