Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbaturin committed Nov 23, 2024
1 parent 717b285 commit 2ef9471
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/framework/web/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,16 @@ public function testCustomUnsafeMethodsCsrfHeaderValidation()
}
}

public function testNoCsrfTokenCsrfHeaderValidation()
{
$this->mockWebApplication();

$request = new Request();
$request->validateCsrfHeaderOnly = true;

$this->assertEquals($request->getCsrfToken(), null);
}

public function testResolve()
{
$this->mockWebApplication([
Expand Down

0 comments on commit 2ef9471

Please sign in to comment.