Skip to content

Commit 2355d97

Browse files
committed
changed method for call cron job
1 parent df84abf commit 2355d97

5 files changed

+5
-5
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateInactiveFlatCategoryAndUpdateAsInactiveTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
3939
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
4040
<!-- Run cron -->
41-
<magentoCLI command="cron:run" arguments="--group=index" stepKey="runCron"/>
41+
<magentoCron stepKey="runIndexCronJobs" groups="index"/>
4242
</before>
4343
<after>
4444
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateInactiveFlatCategoryTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
3939
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
4040
<!-- Run cron -->
41-
<magentoCLI command="cron:run" arguments="--group=index" stepKey="runCron"/>
41+
<magentoCron stepKey="runIndexCronJobs" groups="index"/>
4242
</before>
4343
<after>
4444
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateInactiveInMenuFlatCategoryTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
3939
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
4040
<!-- Run cron -->
41-
<magentoCLI command="cron:run" arguments="--group=index" stepKey="runCron"/>
41+
<magentoCron stepKey="runIndexCronJobs" groups="index"/>
4242
</before>
4343
<after>
4444
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>

app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateFlatCategoryAndAddProductsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
4040
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
4141
<!-- Run cron -->
42-
<magentoCLI command="cron:run" stepKey="runCron1"/>
42+
<magentoCron stepKey="runAllCronJobs"/>
4343
</before>
4444
<after>
4545
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>

app/code/Magento/CatalogRule/Test/Mftf/Test/ApplyCatalogPriceRuleByProductAttributeTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
<see userInput="Updated rules applied." selector="{{ContentManagementSection.StoreConfigurationPageSuccessMessage}}" stepKey="seeSuccessMessage"/>
234234

235235
<!-- Run cron -->
236-
<magentoCLI command="cron:run" stepKey="runCron"/>
236+
<magentoCron stepKey="runAllCronJobs"/>
237237
<magentoCLI command="cache:flush" stepKey="flushCache"/>
238238

239239
<!-- Go to Frontend and open the simple product -->

0 commit comments

Comments
 (0)