You are here

public function SmsFrameworkPhoneNumberVerificationTest::testGetPhoneVerificationByFakeCode in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 tests/src/Kernel/SmsFrameworkPhoneNumberVerificationTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPhoneNumberVerificationTest::testGetPhoneVerificationByFakeCode()
  2. 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\Kernel

Code

public function testGetPhoneVerificationByFakeCode() {
  $this
    ->createEntityWithPhoneNumber($this->phoneNumberSettings, [
    '+123123123',
  ]);
  $return = $this->phoneNumberVerificationProvider
    ->getPhoneVerificationByCode($this
    ->randomMachineName());
  $this
    ->assertFalse($return);
}