public function SiteSettingsUiTest::testSiteSettingsAdminVisibility in Site Settings and Labels 8
Test site settings admin visibility.
File
- src/
Tests/ SiteSettingsUiTest.php, line 56
Class
- SiteSettingsUiTest
- Tests the loading of Site Settings.
Namespace
Drupal\site_settings\TestsCode
public function testSiteSettingsAdminVisibility() {
// Open the site settings list page.
$this
->drupalGet('admin/content/site-settings');
// Make sure the fieldsets match.
$this
->assertRaw('<strong>Images</strong>');
$this
->assertRaw('<strong>Other</strong>');
// Make sure the test plain text is as expected.
$this
->assertText('Test plain text');
// Make sure the test textarea is as expected.
$this
->assertText('Test textarea name');
// Make sure the test multiple entries contents are as expected.
$this
->assertText('Test multiple entries');
$this
->assertText('Test multiple entries name 2');
// Make sure the test multiple entries and fields contents are as expected.
$this
->assertText('Test multiple entries and fields name 1');
$this
->assertText('Test multiple entries and fields name 2');
// Make sure the test multiple fields contents are as expected.
$this
->assertText('Test multiple fields name');
// Make sure the test image is as expected.
$this
->assertText('Test image');
$this
->assertText('Test images 1');
$this
->assertText('Test file');
}