LocaleTranslateStringTourTest.php in Zircon Profile 8.0
File
core/modules/locale/src/Tests/LocaleTranslateStringTourTest.php
View source
<?php
namespace Drupal\locale\Tests;
use Drupal\tour\Tests\TourTestBase;
class LocaleTranslateStringTourTest extends TourTestBase {
protected $adminUser;
public static $modules = array(
'locale',
'tour',
);
protected function setUp() {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser(array(
'translate interface',
'access tour',
'administer languages',
));
$this
->drupalLogin($this->adminUser);
}
public function testTranslateStringTourTips() {
$edit = array();
$edit['predefined_langcode'] = 'es';
$this
->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
$this
->drupalGet('admin/config/regional/translate');
$this
->assertTourTips();
}
}