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