3 namespace Drupal\Tests\language\Functional;
5 use Drupal\Tests\tour\Functional\TourTestBase;
8 * Tests tour functionality.
12 class LanguageTourTest extends TourTestBase {
15 * An admin user with administrative permissions for views.
17 * @var \Drupal\user\UserInterface
26 public static $modules = ['block', 'language', 'tour'];
31 protected function setUp() {
33 $this->adminUser = $this->drupalCreateUser(['administer languages', 'access tour']);
34 $this->drupalLogin($this->adminUser);
35 $this->drupalPlaceBlock('local_actions_block');
39 * Tests language tour tip availability.
41 public function testLanguageTour() {
42 $this->drupalGet('admin/config/regional/language');
43 $this->assertTourTips();
47 * Go to add language page and check the tour tooltips.
49 public function testLanguageAddTour() {
50 $this->drupalGet('admin/config/regional/language/add');
51 $this->assertTourTips();
55 * Go to edit language page and check the tour tooltips.
57 public function testLanguageEditTour() {
58 $this->drupalGet('admin/config/regional/language/edit/en');
59 $this->assertTourTips();