1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

Tests: Rely on admin user, groups, permissions from test setup script

This commit is contained in:
Franz Liedke
2020-05-20 00:18:00 +02:00
committed by Alexander Skvortsov
parent a47187462d
commit a08fd3e475
27 changed files with 8 additions and 269 deletions

View File

@@ -24,17 +24,10 @@ class UserTest extends TestCase
{
$this->prepareDatabase([
'users' => [
$this->adminUser(),
$this->normalUser(),
],
'group_permission' => [
['permission' => 'viewUserList', 'group_id' => 3]
],
'settings' => [
['key' => 'display_name_driver', 'value' => 'custom'],
],
'group_permission' => [
['permission' => 'viewUserList', 'group_id' => 3],
]
]);
}