diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-29 17:16:16 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-29 17:27:20 +0100 |
commit | 51ea3de8a7c090142e796350a240035931047a20 (patch) | |
tree | 4d15dc27c41076ea0408f6f17d70bfd126da9cc9 /tests/lib/Template/JSResourceLocatorTest.php | |
parent | 4a75fb0e9646a372721da025befa71e77227b7f3 (diff) | |
download | nextcloud-server-51ea3de8a7c090142e796350a240035931047a20.tar.gz nextcloud-server-51ea3de8a7c090142e796350a240035931047a20.zip |
fix(JSResourceLocator): Consider configured app roots for files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'tests/lib/Template/JSResourceLocatorTest.php')
-rw-r--r-- | tests/lib/Template/JSResourceLocatorTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Template/JSResourceLocatorTest.php b/tests/lib/Template/JSResourceLocatorTest.php index f5af138060a..ae104d4d6ea 100644 --- a/tests/lib/Template/JSResourceLocatorTest.php +++ b/tests/lib/Template/JSResourceLocatorTest.php @@ -127,9 +127,9 @@ class JSResourceLocatorTest extends \Test\TestCase { $webRoot = $resource[1]; $file = $resource[2]; - $expectedRoot = $new_apps_path . '/test-js-app'; - $expectedWebRoot = \OC::$WEBROOT . '/js-apps-test/test-js-app'; - $expectedFile = 'test-file.js'; + $expectedRoot = $new_apps_path; + $expectedWebRoot = \OC::$WEBROOT . '/js-apps-test'; + $expectedFile = $appName . '/test-file.js'; $this->assertEquals($expectedRoot, $root, 'Ensure the app path symlink is resolved into the real path'); @@ -145,7 +145,7 @@ class JSResourceLocatorTest extends \Test\TestCase { ->method('getAppPath') ->with('core') ->willThrowException(new AppPathNotFoundException()); - $this->appManager->expects($this->once()) + $this->appManager->expects($this->atMost(1)) ->method('getAppWebPath') ->with('core') ->willThrowException(new AppPathNotFoundException()); |