Skip to content

Commit 6e51e21

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: clarify what the tested code is expected to do
2 parents 8478e95 + cdfcf7d commit 6e51e21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/EventListener/CsrfProtectionListenerTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ public function testValidCsrfToken()
5050
->with(new CsrfToken('authenticator_token_id', 'abc123'))
5151
->willReturn(true);
5252

53-
$event = $this->createEvent($this->createPassport(new CsrfTokenBadge('authenticator_token_id', 'abc123')));
53+
$badge = new CsrfTokenBadge('authenticator_token_id', 'abc123');
54+
$event = $this->createEvent($this->createPassport($badge));
5455
$this->listener->checkPassport($event);
5556

56-
$this->expectNotToPerformAssertions();
57+
$this->assertTrue($badge->isResolved());
5758
}
5859

5960
public function testInvalidCsrfToken()

0 commit comments

Comments
 (0)