diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-18 12:29:29 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-09-19 13:59:08 +0200 |
commit | e82ab7816fcbf5c2451e1ec016cf18a332c38934 (patch) | |
tree | 9d7e65758feb174f55ee9cafaf8b67e01f98449c /tests | |
parent | 7b1b5526b77320adca9377e5c079857e0fb336d0 (diff) | |
download | nextcloud-server-e82ab7816fcbf5c2451e1ec016cf18a332c38934.tar.gz nextcloud-server-e82ab7816fcbf5c2451e1ec016cf18a332c38934.zip |
test: fix incorrect ltrim usage in test
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php b/tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php index 8ffd27f0069..95cae5f8b25 100644 --- a/tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php +++ b/tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php @@ -76,7 +76,7 @@ class ObjectStoreStorageTest extends Storage { */ public function testMove($source, $target) { $this->initSourceAndTarget($source); - $sourceId = $this->instance->getCache()->getId(ltrim('/', $source)); + $sourceId = $this->instance->getCache()->getId(ltrim($source, '/')); $this->assertNotEquals(-1, $sourceId); $this->instance->rename($source, $target); @@ -85,7 +85,7 @@ class ObjectStoreStorageTest extends Storage { $this->assertFalse($this->instance->file_exists($source), $source.' still exists'); $this->assertSameAsLorem($target); - $targetId = $this->instance->getCache()->getId(ltrim('/', $target)); + $targetId = $this->instance->getCache()->getId(ltrim($target, '/')); $this->assertSame($sourceId, $targetId, 'fileid must be stable on move or shares will break'); } |