-
- Downloads
Replace originalStorage in tests with a proper teardown
The purpose of $originalStorage in unit tests was to remount the old root. However that storage itself is already wrapped by storage wrapper, so remounting it would rewrap the storage several times. This fix makes use of "loginAsUser()" and "logout()" from the TestCase class to properly initialize and cleanup the FS as expected.
Showing
- apps/files/tests/ajax_rename.php 2 additions, 9 deletionsapps/files/tests/ajax_rename.php
- apps/files_trashbin/tests/storage.php 0 additions, 8 deletionsapps/files_trashbin/tests/storage.php
- tests/lib/files/cache/updater.php 2 additions, 6 deletionstests/lib/files/cache/updater.php
- tests/lib/files/cache/updaterlegacy.php 2 additions, 8 deletionstests/lib/files/cache/updaterlegacy.php
- tests/lib/files/cache/watcher.php 2 additions, 8 deletionstests/lib/files/cache/watcher.php
- tests/lib/files/etagtest.php 2 additions, 15 deletionstests/lib/files/etagtest.php
- tests/lib/files/filesystem.php 2 additions, 10 deletionstests/lib/files/filesystem.php
- tests/lib/files/node/integration.php 3 additions, 9 deletionstests/lib/files/node/integration.php
- tests/lib/files/utils/scanner.php 2 additions, 6 deletionstests/lib/files/utils/scanner.php
- tests/lib/files/view.php 4 additions, 8 deletionstests/lib/files/view.php
- tests/lib/preview.php 2 additions, 0 deletionstests/lib/preview.php
- tests/lib/streamwrappers.php 2 additions, 0 deletionstests/lib/streamwrappers.php
- tests/lib/testcase.php 2 additions, 2 deletionstests/lib/testcase.php
Loading
Please register or sign in to comment