mirror of
https://github.com/flarum/core.git
synced 2025-08-13 03:44:32 +02:00
Move trait to base test class
This way, its properties can be overwritten in subclasses of `ApiControllerTestCase`. This isn't allowed when those subclasses use the trait directly.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace Flarum\Tests\Api\Controller;
|
||||
|
||||
use Flarum\Tests\Test\Concerns\RetrievesAuthorizedUsers;
|
||||
use Flarum\Tests\Test\TestCase;
|
||||
use Flarum\User\User;
|
||||
use Illuminate\Support\Arr;
|
||||
@@ -19,6 +20,8 @@ use Psr\Http\Server\RequestHandlerInterface;
|
||||
|
||||
abstract class ApiControllerTestCase extends TestCase
|
||||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
/**
|
||||
* @var RequestHandlerInterface
|
||||
*/
|
||||
|
Reference in New Issue
Block a user