public function SmsFrameworkQueueTest::testQueueDelayed in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkQueueTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkQueueTest::testQueueDelayed()
- 2.1.x tests/src/Kernel/SmsFrameworkQueueTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkQueueTest::testQueueDelayed()
Test message is delayed.
File
- tests/
src/ Kernel/ SmsFrameworkQueueTest.php, line 118
Class
- SmsFrameworkQueueTest
- Tests behaviour of SMS Framework message queue.
Namespace
Drupal\Tests\sms\KernelCode
public function testQueueDelayed() {
$sms_message = $this
->createSmsMessage()
->setSendTime(REQUEST_TIME + 9999);
$this->smsProvider
->queue($sms_message);
$this->cronService
->run();
$this
->assertEquals(0, count($this
->getTestMessages($this->gateway)), 'Message not sent yet.');
}