function TourHelpPageTest::getTourList

Same name in other branches
  1. 9 core/modules/tour/tests/src/Functional/TourHelpPageTest.php \Drupal\Tests\tour\Functional\TourHelpPageTest::getTourList()
  2. 8.9.x core/modules/tour/tests/src/Functional/TourHelpPageTest.php \Drupal\Tests\tour\Functional\TourHelpPageTest::getTourList()
  3. 10 core/modules/tour/tests/src/Functional/TourHelpPageTest.php \Drupal\Tests\tour\Functional\TourHelpPageTest::getTourList()

Gets a list of tours to test.

Return value

array A list of tour titles to test. The first array element is a list of tours with links, and the second is a list of tours without links. Assumes that the user being tested has 'administer languages' permission but not 'translate interface'.

1 call to TourHelpPageTest::getTourList()
TourHelpPageTest::verifyHelp in core/modules/tour/tests/src/Functional/TourHelpPageTest.php
Verifies the logged in user has access to the help properly.

File

core/modules/tour/tests/src/Functional/TourHelpPageTest.php, line 151

Class

TourHelpPageTest
Verifies help page display of tours.

Namespace

Drupal\Tests\tour\Functional

Code

protected function getTourList() {
    return [
        [
            'Adding languages',
            'Language',
        ],
        [
            'Editing languages',
            'Translation',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.