mirror of
https://github.com/flarum/framework.git
synced 2025-06-23 19:11:23 +08:00
@ -12,6 +12,7 @@
|
||||
namespace Flarum\Tests\integration\api\Controller;
|
||||
|
||||
use Flarum\Api\Controller\ListNotificationsController;
|
||||
use Flarum\User\Exception\PermissionDeniedException;
|
||||
use Flarum\User\User;
|
||||
|
||||
class ListNotificationsControllerTest extends ApiControllerTestCase
|
||||
@ -31,10 +32,11 @@ class ListNotificationsControllerTest 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