You are here

public function RelationUITest::testRelationEndpointsField in Relation 8

Same name and namespace in other branches
  1. 8.2 src/Tests/RelationUITest.php \Drupal\relation\Tests\RelationUITest::testRelationEndpointsField()

Tests endpoint field settings.

File

src/Tests/RelationUITest.php, line 107

Class

RelationUITest
Relation UI.

Namespace

Drupal\relation\Tests

Code

public function testRelationEndpointsField() {

  /* todo Field is currently locked in relation_add_endpoint_field
      // Relation type listing.
      $this->drupalGet('admin/structure/relation');

      // Change label of relation endpoint field.
      $field_label = $this->randomMachineName();
      $edit = [
        'label' => $field_label,
      ];

      $this->drupalPostForm('admin/structure/relation/manage/symmetric/fields/relation.symmetric.endpoints', $edit, t('Save settings'));
      $this->assertText(t('Saved @label configuration.', array('@label' => $field_label)));

      $this->drupalGet('admin/structure/relation/manage/symmetric/fields');
      $this->assertFieldByXPath('//table[@id="field-overview"]//td[1]', $field_label, t('Endpoints field label appears to be changed in the overview table.'));
      */
}