function LocaleTranslateStringTourTest::testTranslateStringTourTips

Same name in other branches
  1. 9 core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php \Drupal\Tests\locale\Functional\LocaleTranslateStringTourTest::testTranslateStringTourTips()
  2. 8.9.x core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php \Drupal\Tests\locale\Functional\LocaleTranslateStringTourTest::testTranslateStringTourTips()
  3. 10 core/modules/tour/tests/src/Functional/Locale/LocaleTranslateStringTourTest.php \Drupal\Tests\tour\Functional\Locale\LocaleTranslateStringTourTest::testTranslateStringTourTips()

Tests locale tour tip availability.

File

core/modules/tour/tests/src/Functional/Locale/LocaleTranslateStringTourTest.php, line 52

Class

LocaleTranslateStringTourTest
Tests the Translate Interface tour.

Namespace

Drupal\Tests\tour\Functional\Locale

Code

public function testTranslateStringTourTips() {
    // Add another language so there are no missing form items.
    $edit = [];
    $edit['predefined_langcode'] = 'es';
    $this->drupalGet('admin/config/regional/language/add');
    $this->submitForm($edit, 'Add language');
    $this->drupalGet('admin/config/regional/translate');
    $this->assertTourTips();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.