Replace sparkbooth upload with photobooth uploader
This commit is contained in:
@@ -27,7 +27,7 @@ class SparkboothUploadTest extends TestCase
|
||||
|
||||
$file = UploadedFile::fake()->image('photo.jpg', 800, 600);
|
||||
|
||||
$response = $this->postJson(route('api.sparkbooth.upload'), [
|
||||
$response = $this->postJson(route('api.photobooth.upload'), [
|
||||
'username' => 'spark-user',
|
||||
'password' => 'secret-123',
|
||||
'media' => $file,
|
||||
@@ -66,7 +66,7 @@ class SparkboothUploadTest extends TestCase
|
||||
|
||||
$file = UploadedFile::fake()->image('photo.jpg', 800, 600);
|
||||
|
||||
$response = $this->post(route('api.sparkbooth.upload'), [
|
||||
$response = $this->post(route('api.photobooth.upload'), [
|
||||
'username' => 'spark-user',
|
||||
'password' => 'wrong',
|
||||
'media' => $file,
|
||||
@@ -96,7 +96,7 @@ class SparkboothUploadTest extends TestCase
|
||||
$binary = base64_encode(file_get_contents($fake->getRealPath()));
|
||||
$dataUri = 'data:image/png;base64,'.$binary;
|
||||
|
||||
$response = $this->postJson(route('api.sparkbooth.upload'), [
|
||||
$response = $this->postJson(route('api.photobooth.upload'), [
|
||||
'token' => $token,
|
||||
'media' => $dataUri,
|
||||
'filename' => 'custom.png',
|
||||
|
||||
Reference in New Issue
Block a user