3 namespace Drupal\locale\Tests;
5 use Drupal\tour\Tests\TourTestBase;
8 * Tests the Translate Interface tour.
12 class LocaleTranslateStringTourTest extends TourTestBase {
15 * An admin user with administrative permissions to translate.
17 * @var \Drupal\user\UserInterface
26 public static $modules = ['locale', 'tour'];
31 protected function setUp() {
33 $this->adminUser = $this->drupalCreateUser(['translate interface', 'access tour', 'administer languages']);
34 $this->drupalLogin($this->adminUser);
38 * Tests locale tour tip availability.
40 public function testTranslateStringTourTips() {
41 // Add another language so there are no missing form items.
43 $edit['predefined_langcode'] = 'es';
44 $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
46 $this->drupalGet('admin/config/regional/translate');
47 $this->assertTourTips();