mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 15:19:56 +08:00
API Client: Use new error handling mechanism
This commit is contained in:

committed by
Daniël Klabbers

parent
6cf3c1088d
commit
ddfb2c1ec1
@ -10,7 +10,6 @@
|
||||
namespace Flarum\Tests\integration\api\Controller;
|
||||
|
||||
use Flarum\Api\Controller\ListNotificationsController;
|
||||
use Flarum\User\Exception\PermissionDeniedException;
|
||||
use Flarum\User\User;
|
||||
|
||||
class ListNotificationsControllerTest extends ApiControllerTestCase
|
||||
@ -33,9 +32,9 @@ class ListNotificationsControllerTest extends ApiControllerTestCase
|
||||
*/
|
||||
public function disallows_index_for_guest()
|
||||
{
|
||||
$this->expectException(PermissionDeniedException::class);
|
||||
$response = $this->callWith();
|
||||
|
||||
$this->callWith();
|
||||
$this->assertEquals(403, $response->getStatusCode());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user