@@ -27,7 +27,7 @@ public function testLogout()
27
27
$ event = new LogoutEvent (new Request (), null );
28
28
$ event ->setResponse ($ response );
29
29
30
- $ listener = new CookieClearingLogoutListener (['foo ' => ['path ' => '/foo ' , 'domain ' => 'foo.foo ' , 'secure ' => true , 'samesite ' => Cookie::SAMESITE_STRICT ], 'foo2 ' => ['path ' => null , 'domain ' => null ]]);
30
+ $ listener = new CookieClearingLogoutListener (['foo ' => ['path ' => '/foo ' , 'domain ' => 'foo.foo ' , 'secure ' => true , 'samesite ' => Cookie::SAMESITE_STRICT , ' partitioned ' => true ], 'foo2 ' => ['path ' => null , 'domain ' => null ]]);
31
31
32
32
$ cookies = $ response ->headers ->getCookies ();
33
33
$ this ->assertCount (0 , $ cookies );
@@ -43,6 +43,7 @@ public function testLogout()
43
43
$ this ->assertEquals ('foo.foo ' , $ cookie ->getDomain ());
44
44
$ this ->assertEquals (Cookie::SAMESITE_STRICT , $ cookie ->getSameSite ());
45
45
$ this ->assertTrue ($ cookie ->isSecure ());
46
+ $ this ->assertTrue ($ cookie ->isPartitioned ());
46
47
$ this ->assertTrue ($ cookie ->isCleared ());
47
48
48
49
$ cookie = $ cookies ['' ]['/ ' ]['foo2 ' ];
@@ -51,6 +52,7 @@ public function testLogout()
51
52
$ this ->assertNull ($ cookie ->getDomain ());
52
53
$ this ->assertNull ($ cookie ->getSameSite ());
53
54
$ this ->assertFalse ($ cookie ->isSecure ());
55
+ $ this ->assertFalse ($ cookie ->isPartitioned ());
54
56
$ this ->assertTrue ($ cookie ->isCleared ());
55
57
}
56
58
}
0 commit comments