public function SmsFrameworkPhoneNumberVerificationTest::testGetPhoneNumberSettingsForEntity in SMS Framework 2.x
Same name and namespace in other branches
- 8 tests/src/Kernel/SmsFrameworkPhoneNumberVerificationTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPhoneNumberVerificationTest::testGetPhoneNumberSettingsForEntity()
- 2.1.x tests/src/Kernel/SmsFrameworkPhoneNumberVerificationTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPhoneNumberVerificationTest::testGetPhoneNumberSettingsForEntity()
Tests read only phone number config helper via entity.
@covers ::getPhoneNumberSettingsForEntity
File
- tests/
src/ Kernel/ SmsFrameworkPhoneNumberVerificationTest.php, line 137
Class
- SmsFrameworkPhoneNumberVerificationTest
- Tests Phone Number Provider.
Namespace
Drupal\Tests\sms\KernelCode
public function testGetPhoneNumberSettingsForEntity() {
$entity = $this
->createEntityWithPhoneNumber($this->phoneNumberSettings);
$return = $this->phoneNumberVerificationProvider
->getPhoneNumberSettingsForEntity($entity);
$this
->assertTrue($return instanceof PhoneNumberSettingsInterface);
}