You are here

public function SmsFrameworkPhoneNumberVerificationTest::testGetPhoneVerificationByEntity in SMS Framework 8

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

Tests get verification by entity.

@covers ::getPhoneVerificationByEntity

File

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

Class

SmsFrameworkPhoneNumberVerificationTest
Tests Phone Number Provider.

Namespace

Drupal\Tests\sms\Kernel

Code

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