Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / language / tests / src / Functional / LanguageTourTest.php
1 <?php
2
3 namespace Drupal\Tests\language\Functional;
4
5 use Drupal\Tests\tour\Functional\TourTestBase;
6
7 /**
8  * Tests tour functionality.
9  *
10  * @group tour
11  */
12 class LanguageTourTest extends TourTestBase {
13
14   /**
15    * An admin user with administrative permissions for views.
16    *
17    * @var \Drupal\user\UserInterface
18    */
19   protected $adminUser;
20
21   /**
22    * Modules to enable.
23    *
24    * @var array
25    */
26   public static $modules = ['block', 'language', 'tour'];
27
28   /**
29    * {@inheritdoc}
30    */
31   protected function setUp() {
32     parent::setUp();
33     $this->adminUser = $this->drupalCreateUser(['administer languages', 'access tour']);
34     $this->drupalLogin($this->adminUser);
35     $this->drupalPlaceBlock('local_actions_block');
36   }
37
38   /**
39    * Tests language tour tip availability.
40    */
41   public function testLanguageTour() {
42     $this->drupalGet('admin/config/regional/language');
43     $this->assertTourTips();
44   }
45
46   /**
47    * Go to add language page and check the tour tooltips.
48    */
49   public function testLanguageAddTour() {
50     $this->drupalGet('admin/config/regional/language/add');
51     $this->assertTourTips();
52   }
53
54   /**
55    * Go to edit language page and check the tour tooltips.
56    */
57   public function testLanguageEditTour() {
58     $this->drupalGet('admin/config/regional/language/edit/en');
59     $this->assertTourTips();
60   }
61
62 }