We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a57bb00 commit cdfcf7dCopy full SHA for cdfcf7d
Tests/EventListener/CsrfProtectionListenerTest.php
@@ -50,10 +50,11 @@ public function testValidCsrfToken()
50
->with(new CsrfToken('authenticator_token_id', 'abc123'))
51
->willReturn(true);
52
53
- $event = $this->createEvent($this->createPassport(new CsrfTokenBadge('authenticator_token_id', 'abc123')));
+ $badge = new CsrfTokenBadge('authenticator_token_id', 'abc123');
54
+ $event = $this->createEvent($this->createPassport($badge));
55
$this->listener->checkPassport($event);
56
- $this->expectNotToPerformAssertions();
57
+ $this->assertTrue($badge->isResolved());
58
}
59
60
public function testInvalidCsrfToken()
0 commit comments