diff options
| author | Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de> | 2021-08-20 06:11:05 +0000 |
|---|---|---|
| committer | Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de> | 2021-08-20 06:11:05 +0000 |
| commit | 9b6bd7e747bd5ed44d169a8e1baee0e519d209d6 (patch) | |
| tree | 104c177e3c0d40d7471d7c081d61dec15cb1bab9 /tests/jsonapi/BlubberCommentsUpdateTest.php | |
| parent | 8edcc69d26d73736b1bab92df28a00cd97ab8cf3 (diff) | |
Update der JSONAPI-Bibliotheken, fixes #80
Diffstat (limited to 'tests/jsonapi/BlubberCommentsUpdateTest.php')
| -rw-r--r-- | tests/jsonapi/BlubberCommentsUpdateTest.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/jsonapi/BlubberCommentsUpdateTest.php b/tests/jsonapi/BlubberCommentsUpdateTest.php index 7ee569d..d9f4a1e 100644 --- a/tests/jsonapi/BlubberCommentsUpdateTest.php +++ b/tests/jsonapi/BlubberCommentsUpdateTest.php @@ -50,13 +50,9 @@ class BlubberCommentsUpdateTest extends \Codeception\Test\Unit $comment = $this->createBlubberComment($credentialsAutor, $thread, 'Autolykos knows him.'); $this->tester->assertEquals($num + 1, \BlubberComment::countBySQL('1')); - $this->tester->expectThrowable(\JsonApi\Errors\AuthorizationFailedException::class, function () use ( - $credentialsDozent, - $comment - ) { - $content = 'Who knows Erginos?'; - $this->updateBlubberCommentJSONAPI($credentialsDozent, $comment, $content); - }); + $content = 'Who knows Erginos?'; + $response = $this->updateBlubberCommentJSONAPI($credentialsDozent, $comment, $content); + $this->tester->assertSame(403, $response->getStatusCode()); } public function testUpdateOtherCommentSuccess() |
