diff --git a/mailpoet/tests/integration/API/JSON/v1/SubscribersTest.php b/mailpoet/tests/integration/API/JSON/v1/SubscribersTest.php index 0e5c52428e..248323e94f 100644 --- a/mailpoet/tests/integration/API/JSON/v1/SubscribersTest.php +++ b/mailpoet/tests/integration/API/JSON/v1/SubscribersTest.php @@ -797,7 +797,7 @@ class SubscribersTest extends \MailPoetTest { \MailPoet\WP\add_action( 'mailpoet_subscription_before_subscribe', function($data) use ($expectedErrorMessage) { - throw new \Mailpoet\UnexpectedValueException($expectedErrorMessage); + throw new UnexpectedValueException($expectedErrorMessage); } );