diff --git a/tests/SMSTest.php b/tests/SMSTest.php index 81b093a..06ef0ef 100644 --- a/tests/SMSTest.php +++ b/tests/SMSTest.php @@ -39,7 +39,7 @@ public function testSMSWithEmptyRecipient() public function testSingleSMSSending() { $response = $this->client->send([ - 'to' => [Fixtures::$phoneNumber], + 'to' => Fixtures::$phoneNumber, 'message' => 'Testing SMS...' ]); @@ -56,6 +56,36 @@ public function testMultipleSMSSending() $this->assertObjectHasAttribute('SMSMessageData', $response['data']); } + public function testHeavySingleSMSSending() + { + $count = 100000; + $phoneNumbers = array(); + for($i=0;$i<$count;$i++) { + array_push($phoneNumbers, "+254724".($count + $i)); + }; + $response = $this->client->send([ + 'to' => $phoneNumbers, + 'message' => "Testing send a message to $count numbers...", + 'enqueue' => true + ]); + + $this->assertObjectHasAttribute('SMSMessageData', $response['data']); + } + + public function testLightMultipleSMSSending() + { + $count = 10; + for($i=0;$i<$count;$i++) { + $num = "+254724".($count + $i); + $response = $this->client->send([ + 'to' => $num, + 'message' => "Testing send a message to $count numbers...", + 'enqueue' => true + ]); + }; + $this->assertObjectHasAttribute('SMSMessageData', $response['data']); + } + public function testSMSSendingWithShortcode() { $response = $this->client->send([