You are here

public function AddressMapLinkConfigureTest::testConfigureAddressMapLink in Address Map (& Directions) Link 8

Test configuration form display on entity view edit page.

File

tests/src/Functional/AddressMapLinkConfigureTest.php, line 168

Class

AddressMapLinkConfigureTest
Class AddressMapLinkConfigureTest.

Namespace

Drupal\Tests\address_map_link\Functional

Code

public function testConfigureAddressMapLink() {
  $field_name = $this->field
    ->getName();
  $this
    ->drupalGet($this->nodeDisplayEditUrl);
  $this
    ->assertNotEmpty((bool) $this
    ->xpath('//select[@name="fields[' . $field_name . '][type]"]'), 'Address field formatter shown as required.');

  // Test that the summary is correct when no settings have been set.
  $this
    ->assertTrue($this
    ->contains('Linked Address: Not Linked'));
  $this
    ->assertTrue($this
    ->contains('Map Link Type'), 'true');
  $this
    ->assertTrue($this
    ->contains('Map Link Position'), 'true');
}