From 0e6b7d76a470c21609731978dcc747923472876d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 4 Sep 2024 14:54:49 +0200 Subject: [PATCH] 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. --- .../Tests/Controller/WebdavControllerTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Bundle/ChillDocStoreBundle/Tests/Controller/WebdavControllerTest.php b/src/Bundle/ChillDocStoreBundle/Tests/Controller/WebdavControllerTest.php index 435acc51f..9d469369d 100644 --- a/src/Bundle/ChillDocStoreBundle/Tests/Controller/WebdavControllerTest.php +++ b/src/Bundle/ChillDocStoreBundle/Tests/Controller/WebdavControllerTest.php @@ -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; + } }