Skip to content

Commit b8a7eee

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: clarify what the tested code is expected to do
2 parents 819b107 + 6e51e21 commit b8a7eee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/EventListener/CsrfProtectionListenerTest.php

Lines changed: 3 additions & 2 deletions
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)