Integration test ProcessCronQueueObserverTest.php succeeds regardless of magento config fixture #16243
Labels
Component: Cron
Fixed in 2.1.x
The issue has been fixed in 2.1 release line
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Uh oh!
There was an error while loading. Please reload this page.
Preconditions
Steps to reproduce
../../../vendor/bin/phpunit testsuite/Magento/Cron/Observer/ProcessCronQueueObserverTest.php
Expected result
Actual result
Additional notes
magento2/dev/tests/integration/testsuite/Magento/Cron/Observer/ProcessCronQueueObserverTest.php
Line 30 in a328a6b
The integration tests succeeds regardless if the config fixture is there or not.
It seems like the fixture should be removed, if it has no effect on the result of the test.
On the other hand the test should perhaps filter the collection by the job code of the configured cron like below:
$collection->addFieldToFilter('job_code', 'catalog_product_alert');
When this is added to the test, it fails, so I'm not quite sure if that is correct.
The text was updated successfully, but these errors were encountered: