LanguageTourTest.php in Drupal 10
File
core/modules/language/tests/src/Functional/LanguageTourTest.php
View source
<?php
namespace Drupal\Tests\language\Functional;
use Drupal\Tests\tour\Functional\TourTestBase;
class LanguageTourTest extends TourTestBase {
protected $adminUser;
protected static $modules = [
'block',
'language',
'tour',
];
protected $defaultTheme = 'stark';
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'administer languages',
'access tour',
]);
$this
->drupalLogin($this->adminUser);
$this
->drupalPlaceBlock('local_actions_block');
}
public function testLanguageTour() {
$this
->drupalGet('admin/config/regional/language');
$this
->assertTourTips();
}
public function testLanguageAddTour() {
$this
->drupalGet('admin/config/regional/language/add');
$this
->assertTourTips();
}
public function testLanguageEditTour() {
$this
->drupalGet('admin/config/regional/language/edit/en');
$this
->assertTourTips();
}
}