mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-14 02:27:23 -07:00
The uploadFile method of Space class updated
This commit is contained in:
parent
d7f0b36dc1
commit
b7d1a40e70
2 changed files with 6 additions and 2 deletions
|
@ -82,7 +82,7 @@ class SpaceTest extends TestCase
|
|||
public function testCanUploadFile()
|
||||
{
|
||||
$tmpFile = tempnam(sys_get_temp_dir(), 'spaces-test');
|
||||
$file = self::$space->uploadFile($tmpFile, 'upload-test.txt');
|
||||
$file = self::$space->uploadFile($tmpFile, 'text/plain', 'upload-test.txt', false);
|
||||
$this->assertInstanceOf(File::class, $file);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue