tests: fix remaining failures

This commit is contained in:
Matthew Penner 2023-01-12 13:19:01 -07:00
parent f45eac623c
commit b59e1da860
No known key found for this signature in database
5 changed files with 15 additions and 61 deletions

View file

@ -38,7 +38,7 @@ class EggControllerTest extends ApplicationApiIntegrationTestCase
[
'object',
'attributes' => [
'id', 'uuid', 'nest', 'author', 'description', 'docker_image', 'startup', 'created_at', 'updated_at',
'id', 'uuid', 'nest_id', 'author', 'description', 'docker_images', 'startup', 'created_at', 'updated_at',
'script' => ['privileged', 'install', 'entry', 'container', 'extends'],
'config' => [
'files' => [],
@ -77,7 +77,7 @@ class EggControllerTest extends ApplicationApiIntegrationTestCase
$response->assertJsonStructure([
'object',
'attributes' => [
'id', 'uuid', 'nest', 'author', 'description', 'docker_image', 'startup', 'script' => [], 'config' => [], 'created_at', 'updated_at',
'id', 'uuid', 'nest_id', 'author', 'description', 'docker_images', 'startup', 'script' => [], 'config' => [], 'created_at', 'updated_at',
],
]);
@ -113,7 +113,7 @@ class EggControllerTest extends ApplicationApiIntegrationTestCase
*/
public function testGetMissingEgg()
{
$response = $this->getJson('/api/application/eggs/nil');
$response = $this->getJson('/api/application/eggs/0');
$this->assertNotFoundJson($response);
}