1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 18:35:56 +02:00

Boot app explicitly to run seeds in time

This commit is contained in:
Franz Liedke
2020-05-21 22:36:52 +02:00
committed by Alexander Skvortsov
parent cacc8b4945
commit 008ec95505
6 changed files with 17 additions and 1 deletions

View File

@@ -43,6 +43,8 @@ class ApiControllerTest extends TestCase
['id' => 3, 'title' => 'Custom Discussion Title', 'created_at' => Carbon::now()->toDateTimeString(), 'user_id' => 1, 'first_post_id' => 0, 'comment_count' => 1, 'is_private' => 0],
],
]);
$this->app();
}
/**
@@ -327,6 +329,8 @@ class ApiControllerTest extends TestCase
])
);
echo $response->getBody();
$payload = json_decode($response->getBody(), true);
$this->assertArrayHasKey('customSerializer', $payload['data']['attributes']);