public function SmsFrameworkPhoneNumberVerificationTest::testGetPhoneVerificationByFakeCode in SMS Framework 2.x
Same name and namespace in other branches
- 8 tests/src/Kernel/SmsFrameworkPhoneNumberVerificationTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPhoneNumberVerificationTest::testGetPhoneVerificationByFakeCode()
- 2.1.x tests/src/Kernel/SmsFrameworkPhoneNumberVerificationTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPhoneNumberVerificationTest::testGetPhoneVerificationByFakeCode()
Tests get verification by non-existent code.
@covers ::getPhoneVerificationByCode
File
- tests/
src/ Kernel/ SmsFrameworkPhoneNumberVerificationTest.php, line 160
Class
- SmsFrameworkPhoneNumberVerificationTest
- Tests Phone Number Provider.
Namespace
Drupal\Tests\sms\KernelCode
public function testGetPhoneVerificationByFakeCode() {
$this
->createEntityWithPhoneNumber($this->phoneNumberSettings, [
'+123123123',
]);
$return = $this->phoneNumberVerificationProvider
->getPhoneVerificationByCode($this
->randomMachineName());
$this
->assertFalse($return);
}