Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6e51e21

Browse filesBrowse 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
Copy full SHA for 6e51e21

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎Tests/EventListener/CsrfProtectionListenerTest.php

Copy file name to clipboardExpand all lines: Tests/EventListener/CsrfProtectionListenerTest.php
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.