]> source.dussan.org Git - nextcloud-server.git/commitdiff
Put back file cleanups, and remove dead code in tests/lib/Template/JSResourceLocatorT... 38024/head
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 2 May 2023 14:24:28 +0000 (16:24 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 2 May 2023 14:24:28 +0000 (16:24 +0200)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tests/lib/Template/JSResourceLocatorTest.php

index fcc27f790f11a9c2b6afd2e73383aa2dde5e6450..9ac6a32e22ceda7545744384963e5535150845b0 100644 (file)
@@ -135,8 +135,8 @@ class JSResourceLocatorTest extends \Test\TestCase {
                $this->assertEquals($expectedWebRoot, $webRoot);
                $this->assertEquals($expectedFile, $file);
 
-               //unlink($new_apps_path_symlink);
-               //$this->rrmdir($new_apps_path);
+               unlink($new_apps_path_symlink);
+               $this->rrmdir($new_apps_path);
        }
 
        public function testFindModuleJSWithFallback() {
@@ -164,7 +164,6 @@ class JSResourceLocatorTest extends \Test\TestCase {
                $resources = $locator->getResources();
                $this->assertCount(3, $resources);
 
-               $expectedRoot = $new_apps_path . '/test-js-app';
                $expectedWebRoot = \OC::$WEBROOT . '/js-apps-test/test-js-app';
                $expectedFiles = ['module.mjs', 'both.mjs', 'plain.js'];