BlockLayoutTourTest.php in Drupal 10
File
core/modules/block/tests/src/Functional/BlockLayoutTourTest.php
View source
<?php
namespace Drupal\Tests\block\Functional;
use Drupal\Tests\tour\Functional\TourTestBase;
class BlockLayoutTourTest extends TourTestBase {
protected $adminUser;
protected static $modules = [
'block',
'tour',
];
protected $defaultTheme = 'stark';
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'administer blocks',
'access tour',
]);
$this
->drupalLogin($this->adminUser);
$this
->drupalPlaceBlock('local_actions_block');
}
public function testBlockLayoutTourTips() {
$this
->drupalGet('admin/structure/block');
$this
->assertTourTips();
}
}