Skip to content

Commit 2a74f74

Browse files
Skip ContextInvalidationLogoutHandlerTest in Symfony 5.1
1 parent 1931578 commit 2a74f74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Functional/Security/Http/Logout/ContextInvalidationLogoutHandlerTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@
1616
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1717
use Symfony\Component\BrowserKit\Cookie;
1818
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
19+
use Symfony\Component\Security\Http\Event\LogoutEvent;
1920

2021
class ContextInvalidationLogoutHandlerTest extends WebTestCase
2122
{
2223
use MockeryPHPUnitIntegration;
2324

2425
public function testLogout()
2526
{
27+
if (class_exists(LogoutEvent::class)) {
28+
$this->markTestSkipped('This test does not work with Symfony 5.1.');
29+
}
30+
2631
$client = static::createClient();
2732
$session = $client->getContainer()->get('session');
2833

0 commit comments

Comments
 (0)