BlockLayoutTourTest.php

Same filename in other branches
  1. 9 core/modules/block/tests/src/Functional/BlockLayoutTourTest.php
  2. 11.x core/modules/tour/tests/src/Functional/Block/BlockLayoutTourTest.php

Namespace

Drupal\Tests\tour\Functional\Block

File

core/modules/tour/tests/src/Functional/Block/BlockLayoutTourTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\tour\Functional\Block;

use Drupal\Tests\tour\Functional\TourTestBase;

/**
 * Tests the Block Layout tour.
 *
 * @group tour
 * @group legacy
 */
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() : void {
        $this->drupalGet('admin/structure/block');
        $this->assertTourTips();
    }

}

Classes

Title Deprecated Summary
BlockLayoutTourTest Tests the Block Layout tour.

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