function AdminTest::testConfigBlocksDescription
Same name in other branches
- 10 core/modules/system/tests/src/Functional/System/AdminTest.php \Drupal\Tests\system\Functional\System\AdminTest::testConfigBlocksDescription()
Tests admin config page blocks without descriptions.
File
-
core/
modules/ system/ tests/ src/ Functional/ System/ AdminTest.php, line 187
Class
- AdminTest
- Tests output on administrative pages and compact mode functionality.
Namespace
Drupal\Tests\system\Functional\SystemCode
public function testConfigBlocksDescription() : void {
// Go to Config administration page.
$this->drupalGet('admin/config');
$this->assertSession()
->statusCodeEquals(200);
// Validates the content block without description.
$this->assertSession()
->pageTextContains('Test custom admin block without description');
// Validates an empty description block.
$this->assertSession()
->elementNotExists('xpath', '//dd[@class="list-group__description"][not(text())]');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.