Only return media added in last half hour

This commit is contained in:
Jonny Barnes 2020-06-28 16:30:56 +01:00
parent 0dcf1d86b5
commit b764066d98
2 changed files with 17 additions and 1 deletions

View file

@ -15,6 +15,16 @@ class MicropubMediaTest extends TestCase
use DatabaseTransactions;
use TestToken;
/** @test */
public function emptyResponseForLastUploadWhenNoneFound()
{
$response = $this->get(
'/api/media?q=last',
['HTTP_Authorization' => 'Bearer ' . $this->getToken()]
);
$response->assertStatus(404);
}
/** @test */
public function clientCanListLastUpload()
{