1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +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:
Daniël Klabbers
2018-05-14 13:32:19 +02:00
committed by GitHub
parent 0058067b1b
commit 2a721926d3
5 changed files with 140 additions and 4 deletions

View File

@@ -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);