You are here

public function SmsFrameworkPhoneNumberVerificationTest::testGetPhoneVerificationByFakeCode in SMS Framework 8

Same name and namespace in other branches
  1. 2.x 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 159

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);
}