public function SmsFrameworkPhoneNumberVerificationTest::testGetPhoneNumberSettingsForEntity in SMS Framework 8
Same name and namespace in other branches
- 2.x 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 136
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);
}