You are here

protected function DevelLayoutInfoTest::setUp in Devel 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/DevelLayoutInfoTest.php \Drupal\Tests\devel\Functional\DevelLayoutInfoTest::setUp()
  2. 8 tests/src/Functional/DevelLayoutInfoTest.php \Drupal\Tests\devel\Functional\DevelLayoutInfoTest::setUp()
  3. 4.x tests/src/Functional/DevelLayoutInfoTest.php \Drupal\Tests\devel\Functional\DevelLayoutInfoTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/DevelLayoutInfoTest.php, line 29

Class

DevelLayoutInfoTest
Tests layout info pages and links.

Namespace

Drupal\Tests\devel\Functional

Code

protected function setUp() {

  // TODO find a cleaner way to skip layout info tests when running tests on
  // Drupal branch < 8.3.x.
  if (version_compare(\Drupal::VERSION, '8.3', '<')) {
    $this
      ->markTestSkipped('Devel Layout Info Tests only available on version 8.3.x+.');
  }
  parent::setUp();
  $this
    ->drupalPlaceBlock('page_title_block');
  $this->develUser = $this
    ->drupalCreateUser([
    'access devel information',
  ]);
  $this
    ->drupalLogin($this->develUser);
}