function ManageDisplayTest::testSingleViewMode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field_ui/src/Tests/ManageDisplayTest.php \Drupal\field_ui\Tests\ManageDisplayTest::testSingleViewMode()
Tests hiding the view modes fieldset when there's only one available.
File
- core/modules/ field_ui/ src/ Tests/ ManageDisplayTest.php, line 387 
- Contains \Drupal\field_ui\Tests\ManageDisplayTest.
Class
- ManageDisplayTest
- Tests the Field UI "Manage display" and "Manage form display" screens.
Namespace
Drupal\field_ui\TestsCode
function testSingleViewMode() {
  $this
    ->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary . '/display');
  $this
    ->assertNoText('Use custom display settings for the following view modes', 'Custom display settings fieldset found.');
  // This may not trigger a notice when 'view_modes_custom' isn't available.
  $this
    ->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary . '/overview/display', array(), t('Save'));
}