Skip to content

Commit 27fead0

Browse files
authored
LYNX-455: Make sure cookie name in assertion ends with '=' to avoid cookie name collision (#262)
1 parent 56c42a8 commit 27fead0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache/DisableSessionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testPrivateSessionContentCookiePresentWhenSessionEnabled()
7777
private function isCookieSet(array $setCookieHeader, string $cookieName): bool
7878
{
7979
return count(array_filter($setCookieHeader, function ($cookie) use ($cookieName) {
80-
return str_starts_with($cookie, $cookieName);
80+
return str_starts_with($cookie, $cookieName . '=');
8181
})) > 0;
8282
}
8383

0 commit comments

Comments
 (0)