Remove phpstan errors from integration Models tests

[MAILPOET-3235]
This commit is contained in:
Jan Lysý
2021-01-13 17:35:36 +01:00
committed by Veljko V
parent 8e53e260ef
commit d3af5a1621
9 changed files with 75 additions and 12 deletions

View File

@@ -249,6 +249,7 @@ class SubscriberSegmentTest extends \MailPoetTest {
// check that we have the proper status
$created = SubscriberSegment::findOne($result->id);
assert($created instanceof SubscriberSegment);
expect($created->status)->equals(Subscriber::STATUS_SUBSCRIBED);
// update same combination of subscriber/segment with a different status
@@ -262,6 +263,7 @@ class SubscriberSegmentTest extends \MailPoetTest {
// check updated status
$updated = SubscriberSegment::findOne($created->id);
assert($updated instanceof SubscriberSegment);
expect($updated->status)->equals(Subscriber::STATUS_UNSUBSCRIBED);
// we should have only one relationship for that user