public function ConfigTest::testThirdPartySettingsSchema in Telephone Validation 8.2
Tests if third party settings schema is valid.
File
- tests/
src/ Kernel/ ConfigTest.php, line 31
Class
- ConfigTest
- @group telephone
Namespace
Drupal\Tests\telephone_validation\KernelCode
public function testThirdPartySettingsSchema() {
$config = FieldConfig::loadByName('entity_test', 'entity_test', 'field_test');
$config
->setThirdPartySetting('telephone_validation', 'format', 0);
$config
->setThirdPartySetting('telephone_validation', 'country', []);
$config
->save();
}