You are here

public function TelephoneFormatterFunctionalTest::testTelephoneFieldFallback in Telephone Formatter 7

Helper function for testTelephoneField().

File

tests/TelephoneFormatterFunctionalTest.test, line 29

Class

TelephoneFormatterFunctionalTest

Code

public function testTelephoneFieldFallback() {
  $this
    ->generateTelephoneField();
  $node = $this
    ->drupalCreateNode([
    'field_telephone' => [
      '98765432',
    ],
  ]);
  $this
    ->drupalGet('node/' . $node->nid);
  $this
    ->assertText(98765432, 'Telephone number was found on the created node.');
}