function ManageFieldsTest::testRenameBundle

Tests renaming a bundle.

File

drupal/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php, line 375
Definition of Drupal\field_ui\Tests\ManageFieldsTest.

Class

ManageFieldsTest
Tests the functionality of the 'Manage fields' screen.

Namespace

Drupal\field_ui\Tests

Code

function testRenameBundle() {
  $type2 = strtolower($this
    ->randomName(8)) . '_test';
  $options = array(
    'type' => $type2,
  );
  $this
    ->drupalPost('admin/structure/types/manage/' . $this->type, $options, t('Save content type'));
  $this
    ->manageFieldsPage($type2);
}