mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
@@ -12,6 +12,7 @@
|
||||
namespace Flarum\Tests\integration\api\Controller;
|
||||
|
||||
use Flarum\Api\Controller\ListUsersController;
|
||||
use Flarum\User\Exception\PermissionDeniedException;
|
||||
use Flarum\User\User;
|
||||
|
||||
class ListUsersControllerTest extends ApiControllerTestCase
|
||||
@@ -37,10 +38,11 @@ class ListUsersControllerTest extends ApiControllerTestCase
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @expectedException \Flarum\User\Exception\PermissionDeniedException
|
||||
*/
|
||||
public function disallows_index_for_guest()
|
||||
{
|
||||
$this->expectException(PermissionDeniedException::class);
|
||||
|
||||
$this->callWith();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user