Skip to content

Commit 31f628a

Browse files
[Magento Community Engineering] Community Contributions - 2.4-develop
- merged latest code from mainline branch
2 parents 67a05e8 + 42e615f commit 31f628a

File tree

38 files changed

+50
-14
lines changed

38 files changed

+50
-14
lines changed

app/code/Magento/AdminAnalytics/Test/Unit/Condition/CanViewNotificationTest.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,27 @@
1111
use Magento\Framework\App\ProductMetadataInterface;
1212
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
1313
use Magento\Framework\App\CacheInterface;
14+
use PHPUnit\Framework\MockObject\MockObject;
15+
use PHPUnit\Framework\TestCase;
1416

15-
/**
16-
* Class CanViewNotificationTest
17-
*/
18-
class CanViewNotificationTest extends \PHPUnit\Framework\TestCase
17+
class CanViewNotificationTest extends TestCase
1918
{
2019
/** @var CanViewNotification */
2120
private $canViewNotification;
2221

23-
/** @var Logger|\PHPUnit_Framework_MockObject_MockObject */
22+
/** @var Logger|MockObject */
2423
private $viewerLoggerMock;
2524

26-
/** @var ProductMetadataInterface|\PHPUnit_Framework_MockObject_MockObject */
25+
/** @var ProductMetadataInterface|MockObject */
2726
private $productMetadataMock;
2827

29-
/** @var Log|\PHPUnit_Framework_MockObject_MockObject */
28+
/** @var Log|MockObject */
3029
private $logMock;
3130

32-
/** @var $cacheStorageMock \PHPUnit_Framework_MockObject_MockObject|CacheInterface */
31+
/** @var $cacheStorageMock MockObject|CacheInterface */
3332
private $cacheStorageMock;
3433

35-
public function setUp()
34+
protected function setUp(): void
3635
{
3736
$this->cacheStorageMock = $this->getMockBuilder(CacheInterface::class)
3837
->getMockForAbstractClass();

app/code/Magento/Backend/Test/Mftf/Test/AdminDashboardWithChartsChart.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<field key="firstname">John1</field>
2929
<field key="lastname">Doe1</field>
3030
</createData>
31+
<magentoCron stepKey="runCronIndex" groups="index"/>
3132
</before>
3233
<after>
3334
<!-- Reset admin order filter -->

app/code/Magento/Braintree/Test/Mftf/Test/BraintreeCreditCardOnCheckoutTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<createData entity="Simple_US_Customer" stepKey="customer"/>
3131
<createData entity="BraintreeConfig" stepKey="BraintreeConfigurationData"/>
3232
<createData entity="CustomBraintreeConfigurationData" stepKey="CustomBraintreeConfigurationData"/>
33+
<magentoCron stepKey="runCronIndex" groups="index"/>
3334
</before>
3435

3536
<after>

app/code/Magento/Braintree/Test/Mftf/Test/CreateAnAdminOrderUsingBraintreePaymentTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
<!--Create New Customer-->
3535
<createData stepKey="createCustomer" entity="Simple_US_Customer"/>
36+
<magentoCron stepKey="runCronIndex" groups="index"/>
3637
</before>
3738

3839

app/code/Magento/Braintree/Test/Mftf/Test/CretateAdminOrderWithOnlinePaymentIncludingTaxAndDiscountTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
<field key="group_id">3</field>
4444
</createData>
4545

46+
<magentoCron stepKey="runCronIndex" groups="index"/>
47+
4648
<!--Login as Admin User-->
4749
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
4850
</before>

app/code/Magento/Bundle/Test/Mftf/ActionGroup/AdminCreateApiDynamicBundleProductActionGroup.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,7 @@
6161
<requiredEntity createDataKey="createBundleOption1_2"/>
6262
<requiredEntity createDataKey="simpleProduct4"/>
6363
</createData>
64+
65+
<magentoCron stepKey="runCronIndex" groups="index"/>
6466
</actionGroup>
6567
</actionGroups>

app/code/Magento/Bundle/Test/Mftf/ActionGroup/AdminCreateApiDynamicBundleProductAllOptionTypesActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@
7070
<requiredEntity createDataKey="createBundleRadioButtonsOption"/>
7171
<requiredEntity createDataKey="simpleProduct2"/>
7272
</createData>
73+
<magentoCron stepKey="runCronIndex" groups="index"/>
7374
</actionGroup>
7475
</actionGroups>

app/code/Magento/Bundle/Test/Mftf/ActionGroup/AdminCreateApiFixedBundleProductActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@
6161
<requiredEntity createDataKey="createBundleOption1_2"/>
6262
<requiredEntity createDataKey="simpleProduct4"/>
6363
</createData>
64+
<magentoCron stepKey="runCronIndex" groups="index"/>
6465
</actionGroup>
6566
</actionGroups>

app/code/Magento/Bundle/Test/Mftf/Test/AdminAddBundleItemsTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2626
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
2727
<createData entity="SimpleProduct2" stepKey="simpleProduct3"/>
28+
<magentoCron stepKey="runCronIndex" groups="index"/>
2829
<!--Admin login-->
2930
<actionGroup stepKey="loginToAdminPanel" ref="AdminLoginActionGroup"/>
3031
</before>

app/code/Magento/Bundle/Test/Mftf/Test/AdminAddBundleProductToCartFromWishListPageTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
<requiredEntity createDataKey="bundleOption"/>
5151
<requiredEntity createDataKey="createSimpleProduct2"/>
5252
</createData>
53+
<magentoCron stepKey="runCronIndex" groups="index"/>
54+
5355
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToProductEditPage">
5456
<argument name="productId" value="$$createProduct.id$$"/>
5557
</actionGroup>

0 commit comments

Comments
 (0)