Skip to content

Commit 6c26d7e

Browse files
committed
ACP2E-2070: Wrong X-Magento-Vary after logging-in to the customer account
1 parent ae25bf5 commit 6c26d7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Customer/Test/Unit/Model/App/Action/ContextPluginTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public function testBeforeExecute()
6666
->willReturn(true);
6767
$this->httpContextMock->expects($this->atLeastOnce())
6868
->method('setValue')
69+
->withConsecutive(
70+
[Context::CONTEXT_GROUP, self::callback(fn($value): bool => $value === '1'), 0],
71+
[Context::CONTEXT_AUTH, true, self::STUB_CUSTOMER_NOT_LOGGED_IN]
72+
)
6973
->willReturnMap(
7074
[
7175
[Context::CONTEXT_GROUP, self::STUB_CUSTOMER_GROUP, $this->httpContextMock],

0 commit comments

Comments
 (0)