Merge pull request #754 from jonnybarnes/752-fix-flaky-phpunit-tests

Remove dates than cause some tests to fail
This commit is contained in:
Jonny Barnes 2023-04-08 10:44:45 +01:00 committed by GitHub
commit 52b1220068
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,6 @@ class MicropubMediaTest extends TestCase
); );
$sourceUploadResponse->assertJson(['items' => [[ $sourceUploadResponse->assertJson(['items' => [[
'url' => $response->headers->get('Location'), 'url' => $response->headers->get('Location'),
'published' => carbon()->toW3cString(),
'mime_type' => 'image/png', 'mime_type' => 'image/png',
]]]); ]]]);
@ -170,7 +169,6 @@ class MicropubMediaTest extends TestCase
); );
$sourceUploadResponse->assertJson(['items' => [[ $sourceUploadResponse->assertJson(['items' => [[
'url' => $response->headers->get('Location'), 'url' => $response->headers->get('Location'),
'published' => carbon()->toW3cString(),
'mime_type' => 'image/png', 'mime_type' => 'image/png',
]]]); ]]]);
// And given our limit of 1 there should only be one result // And given our limit of 1 there should only be one result