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
{
public function testGetList()
{
$serviceInfo = [
'rest' => [
'resourcePath' => '',
'httpMethod' => Request::HTTP_METHOD_GET,
],
];
$response = $this->_webApiCall($serviceInfo);
$this->assertArrayHasKey('search_criteria', $response);
$this->assertArrayHasKey('item', $response);
$this->assertTrue($response['total_count'] > 0);
$this->assertTrue(count($response['total_count']) > 0);
$this->assertNotNull($response['items'][0]['name']);
}
}
Any help will be appreciated