Skip to content

Commit 3086dae

Browse files
committed
ACP2E-2070: Wrong X-Magento-Vary after logging-in to the customer account
1 parent d529cd1 commit 3086dae

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*/
2121
class ContextPluginTest extends TestCase
2222
{
23-
const STUB_CUSTOMER_GROUP = 'UAH';
24-
const STUB_CUSTOMER_NOT_LOGGED_IN = 0;
23+
public const STUB_CUSTOMER_GROUP = 'UAH';
24+
public const STUB_CUSTOMER_NOT_LOGGED_IN = 0;
2525
/**
2626
* @var ContextPlugin
2727
*/
@@ -67,8 +67,8 @@ public function testBeforeExecute()
6767
$this->httpContextMock->expects($this->atLeastOnce())
6868
->method('setValue')
6969
->withConsecutive(
70-
[Context::CONTEXT_GROUP, self::callback(fn($value): bool => $value === '1'), 0],
71-
[Context::CONTEXT_AUTH, true, self::STUB_CUSTOMER_NOT_LOGGED_IN]
70+
[Context::CONTEXT_GROUP, self::callback(fn($value): bool => $value === '1'), 0],
71+
[Context::CONTEXT_AUTH, true, self::STUB_CUSTOMER_NOT_LOGGED_IN]
7272
)
7373
->willReturnMap(
7474
[

app/code/Magento/Customer/Test/Unit/Model/SessionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<?php declare(strict_types=1);
1+
<?php
22
/**
3-
* Unit test for session \Magento\Customer\Model\Session
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
6+
declare(strict_types=1);
7+
88
namespace Magento\Customer\Test\Unit\Model;
99

1010
use Magento\Customer\Api\CustomerRepositoryInterface;

0 commit comments

Comments
 (0)