Replace instance_of asserts in integration tests

[MAILPOET-4258]
This commit is contained in:
David Remer
2022-11-24 14:55:16 +02:00
committed by Jan Lysý
parent 2557171953
commit d2ec7bba42
69 changed files with 406 additions and 402 deletions

View File

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