Replicate what aaronpk does in his endpoint

This commit is contained in:
Jonny Barnes 2020-06-28 17:21:21 +01:00
parent 7fcbfec105
commit 95bf302dcd
2 changed files with 3 additions and 2 deletions

View file

@ -28,7 +28,8 @@ class MicropubMediaTest extends TestCase
'/api/media?q=last',
['HTTP_Authorization' => 'Bearer ' . $this->getToken()]
);
$response->assertStatus(404);
$response->assertStatus(200);
$response->assertJson(['url' => null]);
}
/** @test */