From 5806d62238b404ccc4be8cffa19d0c14a3788980 Mon Sep 17 00:00:00 2001 From: Ashishpundeer Date: Tue, 30 Apr 2024 16:16:00 +0530 Subject: [PATCH] AC-5969::AlertProcessor - Argument #2 () must be of type int, string given --- .../Magento/Cron/Observer/ProcessCronQueueObserverTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tests/integration/testsuite/Magento/Cron/Observer/ProcessCronQueueObserverTest.php b/dev/tests/integration/testsuite/Magento/Cron/Observer/ProcessCronQueueObserverTest.php index 237f2c95606a8..60d7c5ed6de35 100644 --- a/dev/tests/integration/testsuite/Magento/Cron/Observer/ProcessCronQueueObserverTest.php +++ b/dev/tests/integration/testsuite/Magento/Cron/Observer/ProcessCronQueueObserverTest.php @@ -36,7 +36,7 @@ public function testDispatchScheduled() \Magento\Cron\Model\ResourceModel\Schedule\Collection::class ); $collection->addFieldToFilter('status', \Magento\Cron\Model\Schedule::STATUS_PENDING); - $collection->addFieldToFilter('job_code', 'catalog_product_alert'); + $collection->addFieldToFilter('job_code', 'product_alert'); $this->assertGreaterThan(0, $collection->count(), 'Cron has failed to schedule tasks for itself for future.'); }