1.20.x field_ui.test FieldUIManageFieldsTestCase::testRenameBundle()

Tests renaming a bundle.

File

modules/field_ui/tests/field_ui.test, line 503
Tests for field_ui.module.

Class

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

Code

function testRenameBundle() {
  $type2 = strtolower($this->randomName(8)) . '_' . 'test';
  $hyphen_type2 = str_replace('_', '-', $type2);

  $options = array(
    'type' => $type2,
  );
  $this->backdropPost('admin/structure/types/manage/' . $this->hyphen_type, $options, t('Save content type'));

  $this->backdropGet('admin/structure/types/manage/' . $hyphen_type2 . '/fields');
}