function DisplayTest::testFormDisplay

Same name and namespace in other branches
  1. 4.0.x modules/ctools_entity_mask/tests/src/Functional/DisplayTest.php \Drupal\Tests\ctools_entity_mask\Functional\DisplayTest::testFormDisplay()

Tests that the form display for a masked entity replicates its source.

File

modules/ctools_entity_mask/tests/src/Functional/DisplayTest.php, line 52

Class

DisplayTest
Class DisplayTest.

Namespace

Drupal\Tests\ctools_entity_mask\Functional

Code

public function testFormDisplay() {
    $assert = $this->assertSession();
    $this->drupalGet('/fake-block/add/basic');
    $assert->statusCodeEquals(200);
    $assert->fieldExists('Body');
    $assert->fieldExists('Link');
    $assert->fieldExists('Image');
}