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:
committed by
Alexander Skvortsov
parent
cacc8b4945
commit
008ec95505
@@ -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']);
|
||||
|
Reference in New Issue
Block a user