Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yparitcher committed Nov 24, 2024
1 parent 7812093 commit 61cbb2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Feature/RingCentralTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function it_can_retrieve_sent_sms_messages_for_a_given_extension_from_a_s

$result = $this->ringCentral->getMessagesForExtensionId(
$operatorExtensionId,
(new \DateTime)->modify('-1 mins')
now()->subMinute()
);

$this->assertTrue(count($result) < 3);
Expand Down Expand Up @@ -128,11 +128,11 @@ public function it_can_retrieve_sent_sms_messages_for_a_given_extension_from_a_s

$result = $this->ringCentral->getMessagesForExtensionId(
$operatorExtensionId,
(new \DateTime)->modify('-1 mins'),
(new \DateTime)->modify('+2 mins')
now()->subMinute(),
now()->addMinutes(2)
);

$this->assertNotEmpty($result);
$this->assertNotEmpty($result->toArray());
$this->assertTrue(count($result) < 10);

$firstMessage = (array) $result[0];
Expand Down Expand Up @@ -200,7 +200,7 @@ public function it_can_retrieve_an_sms_messages_attachement(): void {

$result = $this->ringCentral->getMessagesForExtensionId(
$operatorExtensionId,
(new \DateTime)->modify('-1 mins')
now()->subMinute()
);

$firstMessage = (array) $result[0];
Expand Down

0 comments on commit 61cbb2c

Please sign in to comment.