You are here

public function LocaleTranslateStringTourTest::testTranslateStringTourTips in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php \Drupal\Tests\locale\Functional\LocaleTranslateStringTourTest::testTranslateStringTourTips()

Tests locale tour tip availability.

File

core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php, line 49

Class

LocaleTranslateStringTourTest
Tests the Translate Interface tour.

Namespace

Drupal\Tests\locale\Functional

Code

public function testTranslateStringTourTips() {

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