class BlockLayoutTourTest in Drupal 10
Same name and namespace in other branches
- 9 core/modules/block/tests/src/Functional/BlockLayoutTourTest.php \Drupal\Tests\block\Functional\BlockLayoutTourTest
Tests the Block Layout tour.
@group block
Hierarchy
- class \Drupal\Tests\BrowserTestBase extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, FunctionalTestSetupTrait, TestSetupTrait, BlockCreationTrait, ConfigTestTrait, ExtensionListTestTrait, ContentTypeCreationTrait, NodeCreationTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings, UiHelperTrait, UserCreationTrait, XdebugRequestTrait
- class \Drupal\Tests\tour\Functional\TourTestBase
- class \Drupal\Tests\block\Functional\BlockLayoutTourTest
- class \Drupal\Tests\tour\Functional\TourTestBase
Expanded class hierarchy of BlockLayoutTourTest
File
- core/
modules/ block/ tests/ src/ Functional/ BlockLayoutTourTest.php, line 12
Namespace
Drupal\Tests\block\FunctionalView source
class BlockLayoutTourTest extends TourTestBase {
/**
* An admin user with administrative permissions for Blocks.
*
* @var \Drupal\user\UserInterface
*/
protected $adminUser;
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = [
'block',
'tour',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'administer blocks',
'access tour',
]);
$this
->drupalLogin($this->adminUser);
$this
->drupalPlaceBlock('local_actions_block');
}
/**
* Tests Block Layout tour tip availability.
*/
public function testBlockLayoutTourTips() {
$this
->drupalGet('admin/structure/block');
$this
->assertTourTips();
}
}