function DevelLayoutInfoTest::setUp
Same name in other branches
- 4.x tests/src/Functional/DevelLayoutInfoTest.php \Drupal\Tests\devel\Functional\DevelLayoutInfoTest::setUp()
- 5.x tests/src/Functional/DevelLayoutInfoTest.php \Drupal\Tests\devel\Functional\DevelLayoutInfoTest::setUp()
File
-
tests/
src/ Functional/ DevelLayoutInfoTest.php, line 29
Class
- DevelLayoutInfoTest
- Tests layout info pages and links.
Namespace
Drupal\Tests\devel\FunctionalCode
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);
}