mirror of
https://github.com/flarum/core.git
synced 2025-08-10 18:35:56 +02:00
Tests: Rely on admin user, groups, permissions from test setup script
This commit is contained in:
committed by
Alexander Skvortsov
parent
a47187462d
commit
a08fd3e475
@@ -35,13 +35,8 @@ class ApiControllerTest extends TestCase
|
||||
{
|
||||
$this->prepareDatabase([
|
||||
'users' => [
|
||||
$this->adminUser(),
|
||||
$this->normalUser()
|
||||
],
|
||||
'groups' => [
|
||||
$this->adminGroup(),
|
||||
$this->memberGroup()
|
||||
],
|
||||
'discussions' => [
|
||||
['id' => 1, 'title' => 'Custom Discussion Title', 'created_at' => Carbon::now()->toDateTimeString(), 'user_id' => 2, 'first_post_id' => 0, 'comment_count' => 1, 'is_private' => 0],
|
||||
['id' => 2, 'title' => 'Custom Discussion Title', 'created_at' => Carbon::now()->toDateTimeString(), 'user_id' => 3, 'first_post_id' => 0, 'comment_count' => 1, 'is_private' => 0],
|
||||
|
Reference in New Issue
Block a user