public function SmsFrameworkVerificationMaintenanceTest::testVerificationUnverifiedNotExpired in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkVerificationMaintenanceTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkVerificationMaintenanceTest::testVerificationUnverifiedNotExpired()
- 2.1.x tests/src/Kernel/SmsFrameworkVerificationMaintenanceTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkVerificationMaintenanceTest::testVerificationUnverifiedNotExpired()
Test unverified verification which have not expired.
File
- tests/
src/ Kernel/ SmsFrameworkVerificationMaintenanceTest.php, line 81
Class
- SmsFrameworkVerificationMaintenanceTest
- Tests verification maintenance executed during cron.
Namespace
Drupal\Tests\sms\KernelCode
public function testVerificationUnverifiedNotExpired() {
$this
->getLastVerification()
->setStatus(FALSE)
->save();
$this->container
->get('cron')
->run();
$this
->assertTrue($this
->getLastVerification() instanceof PhoneNumberVerificationInterface);
}