Simplyfy error throwing

This commit is contained in:
David Remer
2022-01-28 11:36:28 +02:00
committed by Veljko V
parent 0e48d3e2d1
commit 57c842f37f

View File

@ -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);
}
);