function MenuTest::testSystemMenuRename in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/menu_ui/src/Tests/MenuTest.php \Drupal\menu_ui\Tests\MenuTest::testSystemMenuRename()
 
Tests renaming the built-in menu.
File
- core/
modules/ menu_ui/ src/ Tests/ MenuTest.php, line 528  - Contains \Drupal\menu_ui\Tests\MenuTest.
 
Class
- MenuTest
 - Add a custom menu, add menu links to the custom menu and Tools menu, check their data, and delete them using the UI.
 
Namespace
Drupal\menu_ui\TestsCode
function testSystemMenuRename() {
  $this
    ->drupalLogin($this->adminUser);
  $edit = array(
    'label' => $this
      ->randomMachineName(16),
  );
  $this
    ->drupalPostForm('admin/structure/menu/manage/main', $edit, t('Save'));
  // Make sure menu shows up with new name in block addition.
  $default_theme = $this
    ->config('system.theme')
    ->get('default');
  $this
    ->drupalget('admin/structure/block/list/' . $default_theme);
  $this
    ->clickLinkPartialName('Place block');
  $this
    ->assertText($edit['label']);
}