Add exists method to WebdavControllerTest

Included a new method `exists` to handle existence checks for StoredObject or StoredObjectVersion within WebdavControllerTest. This method currently always returns true, ensuring initial compatibility and providing a foundation for future logic refinements.
This commit is contained in:
Julien Fastré 2024-09-04 14:54:49 +02:00
parent b2042bd1e4
commit 0e6b7d76a4
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -446,4 +446,9 @@ class MockedStoredObjectManager implements StoredObjectManagerInterface
public function clearCache(): void {}
public function delete(StoredObjectVersion $storedObjectVersion): void {}
public function exists(StoredObject|StoredObjectVersion $document): bool
{
return true;
}
}