From 85d317015fbbbccf1730375dd0e40f0ca04ee788 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Mon, 19 Sep 2022 15:27:06 -0300 Subject: [PATCH] Replace old Segment model with Doctrine code in SubscribersTest [MAILPOET-4378] --- mailpoet/tests/integration/API/JSON/v1/SubscribersTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mailpoet/tests/integration/API/JSON/v1/SubscribersTest.php b/mailpoet/tests/integration/API/JSON/v1/SubscribersTest.php index 00a636c13d..fd61be8cf9 100644 --- a/mailpoet/tests/integration/API/JSON/v1/SubscribersTest.php +++ b/mailpoet/tests/integration/API/JSON/v1/SubscribersTest.php @@ -24,7 +24,6 @@ use MailPoet\Entities\SubscriberIPEntity; use MailPoet\Entities\SubscriberSegmentEntity; use MailPoet\Form\Util\FieldNameObfuscator; use MailPoet\Listing\Handler; -use MailPoet\Models\Segment; use MailPoet\Models\SendingQueue; use MailPoet\Segments\SegmentsRepository; use MailPoet\Settings\SettingsController; @@ -995,7 +994,7 @@ class SubscribersTest extends \MailPoetTest { public function testItKeepsSpecialSegmentsUnchangedAfterSaving() { $wcSegment = (new SegmentFactory()) ->withName('WooCommerce Users') - ->withType(Segment::TYPE_WC_USERS) + ->withType(SegmentEntity::TYPE_WC_USERS) ->create(); $subscriber = (new SubscriberFactory()) ->withEmail('woo@commerce.com')