Skip to content

Commit e565f3f

Browse files
committed
Fixed static test
1 parent cd123f5 commit e565f3f

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

app/code/Magento/GraphQl/Controller/GraphQl.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
23
/**
34
* Copyright © Magento, Inc. All rights reserved.
45
* See COPYING.txt for license details.
56
*/
7+
68
declare(strict_types=1);
79

810
namespace Magento\GraphQl\Controller;
@@ -92,7 +94,7 @@ class GraphQl implements FrontControllerInterface
9294
* @var ContextFactoryInterface
9395
*/
9496
private $contextFactory;
95-
97+
9698
/**
9799
* @var AreaList $areaList
98100
*/

app/code/Magento/StoreGraphQl/Controller/HttpHeaderProcessor/StoreProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function processHeaderValue(string $headerValue): void
7575
$this->localeResolver->emulate($this->storeManager->getStore($storeCode)->getId());
7676
$this->storeManager->setCurrentStore($storeCode);
7777
$this->updateContext($storeCode);
78-
}
78+
}
7979
} elseif (!$this->isAlreadySet()) {
8080
$storeCode = $this->storeCookieManager->getStoreCodeFromCookie()
8181
?: $this->storeManager->getDefaultStoreView()->getCode();
@@ -125,4 +125,4 @@ private function isStoreValid(string $storeCode): bool
125125
}
126126
return false;
127127
}
128-
}
128+
}

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductSearchWithTranslatedMessageTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function testErrorMessageTranslationInNonDefaultLocale()
3434
$this->graphQlQuery($this->getQuery(), [], '', $header);
3535
}
3636

37-
3837
private function getQuery()
3938
{
4039
return <<<QUERY

dev/tests/integration/testsuite/Magento/Translation/_files/catalog_message_translate.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
* Copyright © Magento, Inc. All rights reserved.
55
* See COPYING.txt for license details.
66
*/
7+
78
declare(strict_types=1);
89

910
/** @var \Magento\Translation\Model\ResourceModel\StringUtils $translateString */
1011
$translateString = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
1112
\Magento\Translation\Model\ResourceModel\StringUtils::class
1213
);
13-
$translateString->saveTranslate('currentPage value must be greater than 0.', 'currentPage-waarde moet groter zijn dan 0.', "nl_NL", 0);
14+
$translateString->saveTranslate(
15+
'currentPage value must be greater than 0.',
16+
'currentPage-waarde moet groter zijn dan 0.',
17+
"nl_NL",
18+
0
19+
);

0 commit comments

Comments
 (0)