public function SmsFrameworkProviderTest::testIncomingNotChunked in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkProviderTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkProviderTest::testIncomingNotChunked()
- 2.1.x tests/src/Kernel/SmsFrameworkProviderTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkProviderTest::testIncomingNotChunked()
Test incoming messages do not get chunked.
File
- tests/
src/ Kernel/ SmsFrameworkProviderTest.php, line 379
Class
- SmsFrameworkProviderTest
- Tests SMS Framework provider service.
Namespace
Drupal\Tests\sms\KernelCode
public function testIncomingNotChunked() {
$this->incomingGateway
->setSkipQueue(TRUE)
->save();
$message = (new StandardSmsMessage())
->setMessage($this
->randomString())
->addRecipients($this
->randomPhoneNumbers())
->setDirection(Direction::INCOMING)
->setGateway($this->incomingGateway);
$message
->setResult($this
->createMessageResult($message));
$this->smsProvider
->queue($message);
$incoming_messages = $this
->getIncomingMessages($this->incomingGateway);
$this
->assertEquals(1, count($incoming_messages), 'There is one incoming message.');
}