Skip to content

Commit 5b82af5

Browse files
committed
ACP2E-2794: [Cloud] Critical Issue with Product Listing with Empty Spaces
1 parent 8609de1 commit 5b82af5

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/************************************************************************
3+
*
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
6+
*
7+
* NOTICE: All information contained herein is, and remains
8+
* the property of Adobe and its suppliers, if any. The intellectual
9+
* and technical concepts contained herein are proprietary to Adobe
10+
* and its suppliers and are protected by all applicable intellectual
11+
* property laws, including trade secret and copyright laws.
12+
* Dissemination of this information or reproduction of this material
13+
* is strictly forbidden unless prior written permission is obtained
14+
* from Adobe.
15+
* ************************************************************************
16+
*/
17+
declare(strict_types=1);
18+
19+
namespace Magento\Indexer\Test\Fixture;
20+
21+
use Magento\Framework\DataObject;
22+
use Magento\Indexer\Model\Processor;
23+
use Magento\TestFramework\Fixture\DataFixtureInterface;
24+
25+
class UpdateMview implements DataFixtureInterface
26+
{
27+
/**
28+
* @param Processor $processor
29+
*/
30+
public function __construct(
31+
private readonly Processor $processor
32+
) {
33+
}
34+
35+
/**
36+
* @inheritDoc
37+
*/
38+
public function apply(array $data = []): ?DataObject
39+
{
40+
$this->processor->updateMview();
41+
return null;
42+
}
43+
}

dev/tests/integration/testsuite/Magento/Sales/_files/quote.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
\Magento\TestFramework\Helper\Bootstrap::getInstance()->loadArea('frontend');
8-
97
$storeManager = Magento\TestFramework\Helper\Bootstrap::getObjectManager()
108
->get(\Magento\Store\Model\StoreManagerInterface::class);
119
$product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class);
@@ -31,6 +29,8 @@
3129
->setWebsiteIds([$storeManager->getStore()->getWebsiteId()])
3230
->save();
3331

32+
\Magento\TestFramework\Helper\Bootstrap::getInstance()->loadArea('frontend');
33+
3434
$productRepository = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
3535
->create(\Magento\Catalog\Api\ProductRepositoryInterface::class);
3636
$product = $productRepository->get('simple');

0 commit comments

Comments
 (0)