diff --git a/core/modules/toolbar/lib/Drupal/toolbar/Tests/ToolbarMenuTranslationTest.php b/core/modules/toolbar/lib/Drupal/toolbar/Tests/ToolbarMenuTranslationTest.php index f303f5e..a11eaab 100644 --- a/core/modules/toolbar/lib/Drupal/toolbar/Tests/ToolbarMenuTranslationTest.php +++ b/core/modules/toolbar/lib/Drupal/toolbar/Tests/ToolbarMenuTranslationTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests maintaining inclusion of icons for translationed menu items. + * Tests maintaining inclusion of icons for translated menu items. */ class ToolbarMenuTranslationTest extends WebTestBase { @@ -91,8 +91,8 @@ function testToolbarClasses() { $this->drupalGet($langcode . '/admin/structure'); $this->assertText($menu_item_translated, t('Found the menu translated.')); - // The icons are included based on the menu item class link title. Test that - // class remains the same after translation. + // Toolbar icons are included based on the presence of a specific class on + // the menu item. Ensure that class also exists for a translated menu item. $xpath = $this->xpath('//a[contains(@class, "icon-structure")]'); $this->assertEqual(count($xpath), 1, 'The menu item class is the same.'); }