Skip to content

magento man

Fatal error: Class ‘MagentoTestFrameworkTestCaseWebapiAbstract’ not found

Hi I’m trying to cxreate an API test for my custom module and I’m getting this error: Fatal error: Class ‘MagentoTestFrameworkTestCaseWebapiAbstract’ not found in /var/www/html/app/code/Wakanda/QuoteApi/Test/Api/CustomerQuoteTest.php on line 8 <?php namespace WakandaQuoteApiTestApi; use MagentoTestFrameworkTestCaseWebapiAbstract; use MagentoFrameworkWebapiRestRequest; class CustomerQuoteTest extends WebapiAbstract {… Read More »Fatal error: Class ‘MagentoTestFrameworkTestCaseWebapiAbstract’ not found

Magento 2: I need to run observer function through Cron job

I want to run an observer function through a Cron job. Can anyone share the simple observer function.? Here is my code <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Cron:etc/crontab.xsd”> <group id=”default”> <job name=”abandon_cron_test” instance=”AbcAbandonObserverAbandon” method=”execute”> <schedule>* * * * *</schedule> </job> </group> </config> Observer… Read More »Magento 2: I need to run observer function through Cron job