mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-20 21:33:43 -07:00
Moved files now retain the current Object
This commit is contained in:
parent
a2bb0f4129
commit
d7f0b36dc1
3 changed files with 6 additions and 5 deletions
|
@ -67,7 +67,7 @@ class FileTest extends TestCase
|
|||
$file = self::$file->copy('test.txt');
|
||||
$file->move('renamed-file.txt');
|
||||
|
||||
$this->assertEquals("Lorem ipsum", self::$space->file('renamed-file.txt')->getContents());
|
||||
$this->assertEquals("renamed-file.txt", $file->filename);
|
||||
|
||||
$this->expectException(FileDoesntExistException::class);
|
||||
self::$space->file('test.txt');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue