/**
* Tests the use of field layout for entity form displays.
*/ publicfunctiontestEntityForm(){ // By default, the one-column layout is used.
$this->drupalGet('entity_test/manage/1/edit'); $this->assertFieldInRegion('field_test_text[0][value]', 'content');
// The one-column layout is in use.
$this->drupalGet('entity_test/structure/entity_test/form-display'); $this->assertEquals(['Content', 'Disabled'], $this->getRegionTitles());