Skip to content

Commit bfe7c94

Browse files
committed
B2B-2206: [Spike] Find All Areas in GraphQL That Break When Session is Disabled
1 parent b160fca commit bfe7c94

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

app/code/Magento/GraphQl/Plugin/DisableSession.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function __construct(
4747
* @param bool $result
4848
* @return bool
4949
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
50-
* @SuppressWarnings(PHPMD.EmptyCatchBlock)
5150
*/
5251
public function afterCheck(SessionStartChecker $subject, bool $result): bool
5352
{

app/code/Magento/GraphQl/Test/Unit/Plugin/DisableSessionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public function testAfterCheckDataProvider()
102102
*/
103103
public function testAfterCheckNoArea(bool $config, bool $methodResult, bool $expectedResult)
104104
{
105+
$this->disableSessionConfigMock->expects($this->any())->method('isDisabled')->willReturn($config);
105106
$this->appStateMock->expects($this->any())
106107
->method('getAreaCode')
107108
->willThrowException(new LocalizedException(__('Are code not set')));

0 commit comments

Comments
 (0)