We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8478e95 + cdfcf7d commit 6e51e21Copy full SHA for 6e51e21
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