-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Require PHP 7.3 and upgrade PHPUnit 8"
- Loading branch information
Showing
16 changed files
with
54 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ env: | |
language: php | ||
|
||
php: | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
|
||
before_script: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,9 +248,7 @@ public function testExtract() | |
); | ||
$conversation->setCustomerWaitingSince($customerWaitingSince); | ||
|
||
$extractedConversation = $conversation->extract(); | ||
|
||
$firstLevelValues = [ | ||
$this->assertArraySubset([ | ||
'id' => 12, | ||
'number' => 3526, | ||
'threadCount' => 2, | ||
|
@@ -264,77 +262,49 @@ public function testExtract() | |
'subject' => 'Help', | ||
'preview' => 'Preview', | ||
'mailboxId' => 13, | ||
'createdAt' => '2017-04-21T14:39:56Z', | ||
'closedAt' => '2017-04-21T12:23:06Z', | ||
'closedBy' => 14, | ||
'userUpdatedAt' => '2017-04-21T03:12:06Z', | ||
]; | ||
|
||
$this->assertEquals( | ||
$firstLevelValues, | ||
array_intersect_assoc($extractedConversation, $firstLevelValues) | ||
); | ||
|
||
$this->assertEquals( | ||
[ | ||
'assignee' => [ | ||
'id' => 9865, | ||
'firstName' => 'Mr', | ||
'lastName' => 'Robot', | ||
], | ||
$extractedConversation['assignee'] | ||
); | ||
|
||
$this->assertEquals( | ||
[ | ||
'createdBy' => [ | ||
'id' => 12, | ||
'type' => 'customer', | ||
], | ||
$extractedConversation['createdBy'] | ||
); | ||
|
||
$this->assertEquals( | ||
[ | ||
'createdAt' => '2017-04-21T14:39:56Z', | ||
'closedAt' => '2017-04-21T12:23:06Z', | ||
'closedBy' => 14, | ||
'userUpdatedAt' => '2017-04-21T03:12:06Z', | ||
'source' => [ | ||
'type' => 'email', | ||
'via' => 'customer', | ||
], | ||
$extractedConversation['source'] | ||
); | ||
|
||
$this->assertEquals( | ||
['[email protected]'], | ||
$extractedConversation['cc'] | ||
); | ||
|
||
$this->assertEquals( | ||
['[email protected]'], | ||
$extractedConversation['bcc'] | ||
); | ||
|
||
$this->assertEquals(152, $extractedConversation['customer']['id']); | ||
$this->assertEquals( | ||
'[email protected]', | ||
$extractedConversation['customer']['email'] | ||
); | ||
|
||
$this->assertEquals( | ||
[ | ||
'cc' => [ | ||
'[email protected]', | ||
], | ||
'bcc' => [ | ||
'[email protected]', | ||
], | ||
'customer' => [ | ||
'id' => 152, | ||
'email' => '[email protected]', | ||
], | ||
'customerWaitingSince' => [ | ||
'time' => '2012-07-24T20:18:33Z', | ||
'friendly' => '20 hours ago', | ||
'latestReplyFrom' => 'customer', | ||
], | ||
$extractedConversation['customerWaitingSince'] | ||
); | ||
|
||
$this->assertEquals(['Productive'], $extractedConversation['tags']); | ||
|
||
$this->assertEquals( | ||
[[ | ||
'id' => 936, | ||
'name' => 'Account Type', | ||
'value' => 'Administrator', | ||
]], | ||
$extractedConversation['fields'] | ||
); | ||
'tags' => [ | ||
'Productive', | ||
], | ||
'fields' => [ | ||
[ | ||
'id' => 936, | ||
'name' => 'Account Type', | ||
'value' => 'Administrator', | ||
], | ||
], | ||
], $conversation->extract()); | ||
} | ||
|
||
public function testExtractsThreads() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters