Fix integration tests compatibility

[MAILPOET-4001]
This commit is contained in:
Jan Lysý
2022-01-07 12:20:22 +01:00
committed by Veljko V
parent 18827ed490
commit d0ea442300
15 changed files with 22 additions and 9 deletions

View File

@@ -25,6 +25,7 @@ require_once('APITestNamespacedEndpointStubV1.php');
require_once('APITestNamespacedEndpointStubV2.php');
class APITest extends \MailPoetTest {
/** @var JSONAPI */
public $api;
public $wpUserId;
/** @var Container */
@@ -54,7 +55,7 @@ class APITest extends \MailPoetTest {
$this->container->compile();
$this->errorHandler = $this->container->get(ErrorHandler::class);
$this->settings = $this->container->get(SettingsController::class);
$this->api = new \MailPoet\API\JSON\API(
$this->api = new JSONAPI(
$this->container,
$this->container->get(AccessControl::class),
$this->errorHandler,