diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-06-15 21:29:22 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-06-15 21:29:22 +0300 |
| commit | a15fe2d871772c78cacce00530211c391d52508e (patch) | |
| tree | b0b44f1d88a7ae36f23f8f86613d0daf60cc0999 /tests_integration/CsrfMiddlewareTest.php | |
| parent | 23712d1e078fb065cd32f32b007da8f46619b55a (diff) | |
| download | the-epube-a15fe2d871772c78cacce00530211c391d52508e.tar.gz the-epube-a15fe2d871772c78cacce00530211c391d52508e.tar.xz | |
fix tests
Diffstat (limited to 'tests_integration/CsrfMiddlewareTest.php')
| -rw-r--r-- | tests_integration/CsrfMiddlewareTest.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests_integration/CsrfMiddlewareTest.php b/tests_integration/CsrfMiddlewareTest.php index dcf7ed8..2adce0e 100644 --- a/tests_integration/CsrfMiddlewareTest.php +++ b/tests_integration/CsrfMiddlewareTest.php @@ -24,27 +24,6 @@ final class CsrfMiddlewareTest extends ApiTestCase $this->assertArrayHasKey('books', $body); } - public function test_ignored_op_getinfo_without_csrf(): void - { - // Login to establish session - [$status, $body] = $this->post($this->apiUrl, [ - 'op' => 'perform-login', - 'user' => 'test', - 'password' => 'test', - ]); - $this->assertEquals(200, $status); - - // getinfo is in csrfIgnore — should work without csrf_token - [$status, $body] = $this->post($this->apiUrl, [ - 'op' => 'getinfo', - 'id' => 2, - 'csrf_token' => '', - ]); - - $this->assertEquals(200, $status); - $this->assertArrayHasKey('id', $body); - } - // ── Non-ignored operations — CSRF required ─────────────────────────────── public function test_non_ignored_op_requires_csrf(): void |
