Return a published and mime type data with sourced media uploads
This commit is contained in:
parent
84efc8a3da
commit
42f0fa2238
3 changed files with 30 additions and 0 deletions
|
@ -137,6 +137,8 @@ class MicropubMediaTest extends TestCase
|
|||
);
|
||||
$sourceUploadResponse->assertJson(['items' => [[
|
||||
'url' => $response->headers->get('Location'),
|
||||
'published' => carbon()->toW3cString(),
|
||||
'mime_type' => 'image/png',
|
||||
]]]);
|
||||
|
||||
// now remove file
|
||||
|
@ -168,6 +170,8 @@ class MicropubMediaTest extends TestCase
|
|||
);
|
||||
$sourceUploadResponse->assertJson(['items' => [[
|
||||
'url' => $response->headers->get('Location'),
|
||||
'published' => carbon()->toW3cString(),
|
||||
'mime_type' => 'image/png',
|
||||
]]]);
|
||||
// And given our limit of 1 there should only be one result
|
||||
$this->assertCount(1, json_decode($sourceUploadResponse->getContent(), true)['items']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue