mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
test: fix incorrect ltrim usage in test
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
75cf17e4c4
commit
74adaebf96
1 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ class ObjectStoreStorageTest extends Storage {
|
|||
*/
|
||||
public function testMove($source, $target): void {
|
||||
$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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue