mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Tests: DB tables no longer need to be truncated
This commit is contained in:
committed by
Alexander Skvortsov
parent
843a149b80
commit
a47187462d
@@ -28,10 +28,6 @@ class WithApiKeyTest extends TestCase
|
||||
$this->adminUser(),
|
||||
$this->normalUser(),
|
||||
],
|
||||
'group_permission' => [
|
||||
['permission' => 'viewUserList', 'group_id' => 3]
|
||||
],
|
||||
'api_keys' => [],
|
||||
]);
|
||||
}
|
||||
|
||||
|
@@ -23,8 +23,6 @@ class CreateTest extends TestCase
|
||||
parent::setUp();
|
||||
|
||||
$this->prepareDatabase([
|
||||
'discussions' => [],
|
||||
'posts' => [],
|
||||
'users' => [
|
||||
$this->adminUser(),
|
||||
$this->normalUser(),
|
||||
|
@@ -25,7 +25,6 @@ class CreateTest extends TestCase
|
||||
'discussions' => [
|
||||
['id' => 1, 'title' => __CLASS__, 'created_at' => Carbon::now()->toDateTimeString(), 'user_id' => 2],
|
||||
],
|
||||
'posts' => [],
|
||||
'users' => [
|
||||
$this->normalUser(),
|
||||
],
|
||||
|
@@ -29,7 +29,6 @@ class ListTest extends TestCase
|
||||
$this->adminGroup(),
|
||||
$this->guestGroup(),
|
||||
],
|
||||
'group_permission' => [],
|
||||
'group_user' => [
|
||||
['user_id' => 1, 'group_id' => 1],
|
||||
],
|
||||
|
Reference in New Issue
Block a user