Skip to content

Commit b2903a5

Browse files
authored
Merge pull request #538 from magento-performance/ACPT-1323
ACPT-1323: Fix Cms failures on app server
2 parents 42f0226 + 60f3391 commit b2903a5

File tree

6 files changed

+17
-1
lines changed

6 files changed

+17
-1
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogCms/CategoryBlockTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
class CategoryBlockTest extends GraphQlAbstract
2020
{
2121
/**
22+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
2223
* @magentoApiDataFixture Magento/Catalog/_files/category_tree.php
2324
* @magentoApiDataFixture Magento/Cms/_files/block.php
2425
*/

dev/tests/api-functional/testsuite/Magento/GraphQl/Cms/CmsBlockTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ protected function setUp(): void
3838
/**
3939
* Verify the fields of CMS Block selected by identifiers
4040
*
41+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
4142
* @magentoApiDataFixture Magento/Cms/_files/blocks.php
4243
*/
4344
public function testGetCmsBlock()
@@ -71,6 +72,7 @@ public function testGetCmsBlock()
7172
/**
7273
* Verify the fields of CMS Block selected by block_id
7374
*
75+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
7476
* @magentoApiDataFixture Magento/Cms/_files/blocks.php
7577
*/
7678
public function testGetCmsBlockByBlockId()

dev/tests/api-functional/testsuite/Magento/GraphQl/CmsGraphQl/Model/Resolver/BlockTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use Magento\TestFramework\TestCase\GraphQl\ResponseContainsErrorsException;
1919
use Magento\Widget\Model\Template\FilterEmulate;
2020

21+
/**
22+
* Test for cms block resolver cache
23+
*/
2124
class BlockTest extends ResolverCacheAbstract
2225
{
2326
/**
@@ -52,6 +55,7 @@ protected function setUp(): void
5255
}
5356

5457
/**
58+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
5559
* @magentoDataFixture Magento/Cms/_files/blocks.php
5660
*/
5761
public function testCmsSingleBlockResolverCacheAndInvalidationAsGuest()
@@ -90,6 +94,7 @@ public function testCmsSingleBlockResolverCacheAndInvalidationAsGuest()
9094
}
9195

9296
/**
97+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
9398
* @magentoDataFixture Magento/Cms/_files/block.php
9499
* @magentoDataFixture Magento/Cms/_files/blocks.php
95100
*/
@@ -134,6 +139,7 @@ public function testCmsMultipleBlockResolverCacheAndInvalidationAsGuest()
134139
}
135140

136141
/**
142+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
137143
* @magentoDataFixture Magento/Cms/_files/block.php
138144
*/
139145
public function testCmsBlockResolverCacheInvalidatesWhenBlockGetsDeleted()
@@ -171,6 +177,7 @@ public function testCmsBlockResolverCacheInvalidatesWhenBlockGetsDeleted()
171177
}
172178

173179
/**
180+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
174181
* @magentoDataFixture Magento/Cms/_files/blocks.php
175182
*/
176183
public function testCmsBlockResolverCacheInvalidatesWhenBlockGetsDisabled()
@@ -209,6 +216,7 @@ public function testCmsBlockResolverCacheInvalidatesWhenBlockGetsDisabled()
209216
}
210217

211218
/**
219+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
212220
* @magentoDataFixture Magento/Cms/_files/block.php
213221
* @magentoDataFixture Magento/Store/_files/second_store.php
214222
*/

dev/tests/api-functional/testsuite/Magento/GraphQl/Store/AvailableStoresTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ protected function setUp(): void
4747
}
4848

4949
/**
50+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
5051
* @magentoApiDataFixture Magento/Store/_files/store.php
5152
* @magentoApiDataFixture Magento/Store/_files/inactive_store.php
5253
*/
@@ -109,6 +110,7 @@ public function testDefaultWebsiteAvailableStoreConfigs(): void
109110
}
110111

111112
/**
113+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
112114
* @magentoApiDataFixture Magento/Store/_files/second_website_with_two_stores.php
113115
*/
114116
public function testNonDefaultWebsiteAvailableStoreConfigs(): void
@@ -206,6 +208,7 @@ private function validateStoreConfig(StoreConfigInterface $storeConfig, array $r
206208
}
207209

208210
/**
211+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
209212
* @magentoApiDataFixture Magento/Store/_files/second_website_with_four_stores_divided_in_groups.php
210213
* @magentoConfigFixture web/url/use_store 1
211214
*/
@@ -266,6 +269,7 @@ public function testAllStoreConfigsWithCodeInUrlEnabled(): void
266269
}
267270

268271
/**
272+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
269273
* @magentoApiDataFixture Magento/Store/_files/second_website_with_four_stores_divided_in_groups.php
270274
*/
271275
public function testCurrentGroupStoreConfigs(): void

dev/tests/api-functional/testsuite/Magento/GraphQl/Store/StoreConfigResolverTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ protected function setUp(): void
3535
}
3636

3737
/**
38+
* @magentoConfigFixture default_store web/seo/use_rewrites 1
3839
* @magentoApiDataFixture Magento/Store/_files/store.php
3940
* @throws NoSuchEntityException
4041
*/

lib/internal/Magento/Framework/Model/AbstractExtensibleModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function filterCustomAttributes($data)
127127
if (isset($data[self::CUSTOM_ATTRIBUTES][0])) {
128128
$data[self::CUSTOM_ATTRIBUTES] = $this->flattenCustomAttributesArrayToMap($data[self::CUSTOM_ATTRIBUTES]);
129129
}
130-
$customAttributesCodes = $this->getCustomAttributesCodes();
130+
$customAttributesCodes = $this->getCustomAttributesCodes();
131131
$data[self::CUSTOM_ATTRIBUTES] = array_intersect_key(
132132
(array) $data[self::CUSTOM_ATTRIBUTES],
133133
array_flip($customAttributesCodes)

0 commit comments

Comments
 (0)