public function PhoneInternationalFieldTest::testTelephoneWidget in International Phone 3.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/PhoneInternationalFieldTest.php \Drupal\Tests\phone_international\Functional\PhoneInternationalFieldTest::testTelephoneWidget()
- 8 tests/src/Functional/PhoneInternationalFieldTest.php \Drupal\Tests\phone_international\Functional\PhoneInternationalFieldTest::testTelephoneWidget()
Test to confirm the widget is setup.
File
- tests/
src/ Functional/ PhoneInternationalFieldTest.php, line 102
Class
- PhoneInternationalFieldTest
- Simple test to ensure that main page loads with module enabled.
Namespace
Drupal\Tests\phone_international\FunctionalCode
public function testTelephoneWidget() {
$this
->drupalGet('entity_test/add');
$this
->assertSession()
->fieldValueEquals("{$this->fieldname}[0][value][int_phone]", '');
}