You are here

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

Same name and namespace in other branches
  1. 8 tests/src/Kernel/SmsFrameworkPhoneNumberVerificationTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPhoneNumberVerificationTest::testGetPhoneVerificationByEntityInvalidPhone()
  2. 2.1.x tests/src/Kernel/SmsFrameworkPhoneNumberVerificationTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPhoneNumberVerificationTest::testGetPhoneVerificationByEntityInvalidPhone()

Tests get verification by entity with phone number without verification.

@covers ::getPhoneVerificationByEntity

File

tests/src/Kernel/SmsFrameworkPhoneNumberVerificationTest.php, line 239

Class

SmsFrameworkPhoneNumberVerificationTest
Tests Phone Number Provider.

Namespace

Drupal\Tests\sms\Kernel

Code

public function testGetPhoneVerificationByEntityInvalidPhone() {
  $entity = $this
    ->createEntityWithPhoneNumber($this->phoneNumberSettings, [
    '+123123123',
  ]);
  $return = $this->phoneNumberVerificationProvider
    ->getPhoneVerificationByEntity($entity, '+456456456');
  $this
    ->assertFalse($return);
}