class LanguageTourTest
Same name and namespace in other branches
- 10 core/modules/tour/tests/src/Functional/Language/LanguageTourTest.php \Drupal\Tests\tour\Functional\Language\LanguageTourTest
- 8.9.x core/modules/language/tests/src/Functional/LanguageTourTest.php \Drupal\Tests\language\Functional\LanguageTourTest
Tests tour functionality.
@group tour
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\tour\Functional\TourTestBase extends \Drupal\Tests\BrowserTestBase
- class \Drupal\Tests\language\Functional\LanguageTourTest extends \Drupal\Tests\tour\Functional\TourTestBase
- class \Drupal\Tests\tour\Functional\TourTestBase extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of LanguageTourTest
File
-
core/
modules/ language/ tests/ src/ Functional/ LanguageTourTest.php, line 12
Namespace
Drupal\Tests\language\FunctionalView source
class LanguageTourTest extends TourTestBase {
/**
* An admin user with administrative permissions for views.
*
* @var \Drupal\user\UserInterface
*/
protected $adminUser;
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = [
'block',
'language',
'tour',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this->drupalCreateUser([
'administer languages',
'access tour',
]);
$this->drupalLogin($this->adminUser);
$this->drupalPlaceBlock('local_actions_block');
}
/**
* Tests language tour tip availability.
*/
public function testLanguageTour() {
$this->drupalGet('admin/config/regional/language');
$this->assertTourTips();
}
/**
* Go to add language page and check the tour tooltips.
*/
public function testLanguageAddTour() {
$this->drupalGet('admin/config/regional/language/add');
$this->assertTourTips();
}
/**
* Go to edit language page and check the tour tooltips.
*/
public function testLanguageEditTour() {
$this->drupalGet('admin/config/regional/language/edit/en');
$this->assertTourTips();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.