mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
adds a few additional api controller tests (#1429)
* added CreatePostControllerTest * added DeleteDiscussionControllerTest * added ListDiscussionControllerTest * Apply fixes from StyleCI [ci skip] [skip ci]
This commit is contained in:
@@ -28,7 +28,7 @@ trait RetrievesAuthorizedUsers
|
||||
|
||||
public function getNormalUser()
|
||||
{
|
||||
User::unguarded(function () {
|
||||
return User::unguarded(function () {
|
||||
return User::firstOrCreate([
|
||||
'username' => $this->userAttributes['username']
|
||||
], $this->userAttributes);
|
||||
|
Reference in New Issue
Block a user