mirror of
https://github.com/flarum/core.git
synced 2025-08-09 09:57:06 +02:00
Boot app explicitly to run seeds in time
This commit is contained in:
committed by
Alexander Skvortsov
parent
cacc8b4945
commit
008ec95505
@@ -32,6 +32,8 @@ class ModelTest extends TestCase
|
||||
$this->normalUser(),
|
||||
],
|
||||
]);
|
||||
|
||||
$this->app();
|
||||
}
|
||||
|
||||
protected function prepPostsHierarchy()
|
||||
@@ -47,6 +49,8 @@ class ModelTest extends TestCase
|
||||
['id' => 1, 'discussion_id' => 1, 'created_at' => Carbon::now()->toDateTimeString(), 'user_id' => 2, 'type' => 'discussionRenamed', 'content' => '<t><p>can i haz relationz?</p></t>'],
|
||||
],
|
||||
]);
|
||||
|
||||
$this->app();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -161,12 +165,12 @@ class ModelTest extends TestCase
|
||||
})
|
||||
);
|
||||
|
||||
$this->prepDB();
|
||||
$this->prepareDatabase([
|
||||
'discussions' => [
|
||||
['id' => 1, 'title' => __CLASS__, 'created_at' => Carbon::now()->toDateTimeString(), 'user_id' => 1, 'first_post_id' => 1, 'comment_count' => 1]
|
||||
]
|
||||
]);
|
||||
$this->prepDB();
|
||||
|
||||
$user = User::find(1);
|
||||
|
||||
|
Reference in New Issue
Block a user