Skip to content

Commit e496070

Browse files
committed
Merge remote-tracking branch 'origin/AC-5969v1' into spartans_pr_15042024
2 parents b373814 + 5806d62 commit e496070

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/ProductAlert/etc/crontab.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
99
<group id="default">
10-
<job name="catalog_product_alert" instance="Magento\ProductAlert\Model\Observer" method="process">
10+
<job name="product_alert" instance="Magento\ProductAlert\Model\Observer" method="process">
1111
<config_path>crontab/default/jobs/catalog_product_alert/schedule/cron_expr</config_path>
1212
</job>
1313
</group>

dev/tests/integration/testsuite/Magento/Cron/Observer/ProcessCronQueueObserverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testDispatchScheduled()
3636
\Magento\Cron\Model\ResourceModel\Schedule\Collection::class
3737
);
3838
$collection->addFieldToFilter('status', \Magento\Cron\Model\Schedule::STATUS_PENDING);
39-
$collection->addFieldToFilter('job_code', 'catalog_product_alert');
39+
$collection->addFieldToFilter('job_code', 'product_alert');
4040
$this->assertGreaterThan(0, $collection->count(), 'Cron has failed to schedule tasks for itself for future.');
4141
}
4242

0 commit comments

Comments
 (0)