test: skip testTrashEntryCreatedWhenSourceNotInCache on object store

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-04-01 20:23:42 +02:00 committed by backportbot[bot]
parent 217bb2ad1d
commit e61736451d

View file

@ -11,6 +11,7 @@ namespace OCA\Files_Trashbin\Tests;
use OC\Files\Cache\Updater;
use OC\Files\Filesystem;
use OC\Files\ObjectStore\ObjectStoreStorage;
use OC\Files\Storage\Common;
use OC\Files\Storage\Local;
use OC\Files\Storage\Temporary;
@ -126,6 +127,9 @@ class StorageTest extends \Test\TestCase {
$this->userView->file_put_contents('uncached.txt', 'foo');
[$storage, $internalPath] = $this->userView->resolvePath('uncached.txt');
if ($storage->instanceOfStorage(ObjectStoreStorage::class)) {
$this->markTestSkipped('object store always has the file in cache');
}
$cache = $storage->getCache();
$cache->remove($internalPath);
$this->assertFalse($cache->inCache($internalPath));