Hi I'm trying to cxreate an API test for my custom module and I'm getting this error:
Fatal error: Class 'Magento\TestFramework\TestCase\WebapiAbstract' not found in /var/www/html/app/code/Wakanda/QuoteApi/Test/Api/CustomerQuoteTest.php on line 8
<?php
namespace Wakanda\QuoteApi\Test\Api;
use Magento\TestFramework\TestCase\WebapiAbstract;
use Magento\Framework\Webapi\Rest\Request;
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