Skip to content

Commit 7fd9386

Browse files
authored
test: fix FileMovingTest failing on 4.8 merge-up (#10751)
1 parent d360d8e commit 7fd9386

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/system/HTTP/Files/FileMovingTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function testMoveKeepsWindowsUnsafeDefaultNameOutsideWindows(string $clie
211211
$file = (new FileCollection())->getFile('userfile');
212212
$this->assertInstanceOf(UploadedFile::class, $file);
213213

214-
$this->assertTrue($file->move($this->destination));
214+
$this->assertSame($file, $file->move($this->destination));
215215
$this->assertSame($clientName, $file->getName());
216216
$this->assertTrue($this->root->hasChild('destination/' . $clientName));
217217
}
@@ -245,7 +245,7 @@ public function testMoveAcceptsDefaultNameWithInnerPeriodsAndSpaces(): void
245245
$file = (new FileCollection())->getFile('userfile');
246246
$this->assertInstanceOf(UploadedFile::class, $file);
247247

248-
$this->assertTrue($file->move($this->destination));
248+
$this->assertSame($file, $file->move($this->destination));
249249
$this->assertSame('my file.v1..final.txt', $file->getName());
250250
$this->assertTrue($this->root->hasChild('destination/my file.v1..final.txt'));
251251
}
@@ -267,7 +267,7 @@ public function testMoveAcceptsSafeCallerSuppliedName(): void
267267
$file = (new FileCollection())->getFile('userfile');
268268
$this->assertInstanceOf(UploadedFile::class, $file);
269269

270-
$this->assertTrue($file->move($this->destination, 'avatar.txt'));
270+
$this->assertSame($file, $file->move($this->destination, 'avatar.txt'));
271271
$this->assertSame('avatar.txt', $file->getName());
272272
}
273273

0 commit comments

Comments
 (0)