aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2025-02-13 18:16:46 +0100
committerGitHub <noreply@github.com>2025-02-13 18:16:46 +0100
commit393eba8ea85890c1558af608cca110ce01e7cbea (patch)
tree59ac35811261da87720d4780a4f404107476b929 /apps
parent35847fb2c116c2dbf6c910e6ad0533e73800ab30 (diff)
parentb9ac12466edc15f2e078d74906f7937892da21ac (diff)
downloadnextcloud-server-393eba8ea85890c1558af608cca110ce01e7cbea.tar.gz
nextcloud-server-393eba8ea85890c1558af608cca110ce01e7cbea.zip
Merge pull request #49802 from nextcloud/backport/48235/stable30
[stable30] test: re-add object store primary storage phpunit tests
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/tests/SharedStorageTest.php1
-rw-r--r--apps/files_trashbin/tests/StorageTest.php6
2 files changed, 2 insertions, 5 deletions
diff --git a/apps/files_sharing/tests/SharedStorageTest.php b/apps/files_sharing/tests/SharedStorageTest.php
index f6557d1711d..320fc466789 100644
--- a/apps/files_sharing/tests/SharedStorageTest.php
+++ b/apps/files_sharing/tests/SharedStorageTest.php
@@ -457,6 +457,7 @@ class SharedStorageTest extends TestCase {
$sourceStorage = new \OC\Files\Storage\Temporary([]);
$sourceStorage->file_put_contents('foo.txt', 'asd');
+ $sourceStorage->getScanner()->scan('');
$sharedStorage->moveFromStorage($sourceStorage, 'foo.txt', 'bar.txt');
$this->assertTrue($sharedStorage->file_exists('bar.txt'));
diff --git a/apps/files_trashbin/tests/StorageTest.php b/apps/files_trashbin/tests/StorageTest.php
index 70a40d10d3f..8c3a82846fa 100644
--- a/apps/files_trashbin/tests/StorageTest.php
+++ b/apps/files_trashbin/tests/StorageTest.php
@@ -8,7 +8,6 @@ namespace OCA\Files_Trashbin\Tests;
use OC\Files\Filesystem;
use OC\Files\Storage\Common;
-use OC\Files\Storage\Local;
use OC\Files\Storage\Temporary;
use OCA\Files_Trashbin\AppInfo\Application;
use OCA\Files_Trashbin\Events\MoveToTrashEvent;
@@ -672,10 +671,7 @@ class StorageTest extends \Test\TestCase {
$this->assertEquals('bar', $this->rootView->file_get_contents($this->user . '/files_trashbin/files/test.txt.d1001'));
}
- public function testMoveFromStoragePreserveFileId() {
- if (!$this->userView->getMount('')->getStorage()->instanceOfStorage(Local::class)) {
- $this->markTestSkipped("Skipping on non-local users storage");
- }
+ public function testMoveFromStoragePreserveFileId(): void {
$this->userView->file_put_contents('test.txt', 'foo');
$fileId = $this->userView->getFileInfo('test.txt')->getId();