public function DiffAdminFormsTest::testSettingsUi in Diff 8
Tests the descriptions in the Settings UI.
File
- tests/
src/ Functional/ DiffAdminFormsTest.php, line 34
Class
- DiffAdminFormsTest
- Tests the Diff admin forms.
Namespace
Drupal\Tests\diff\FunctionalCode
public function testSettingsUi() {
// Enable the help block.
$this
->drupalPlaceBlock('help_block', [
'region' => 'help',
]);
$this
->drupalGet('admin/config/content/diff/general');
// Check the settings introduction text.
$this
->assertText('Configurations for the revision comparison functionality and diff layout plugins.');
// Check the layout plugins descriptions.
$this
->assertText('Field based layout, displays revision comparison side by side.');
$this
->assertText('Field based layout, displays revision comparison line by line.');
}