public function CommentAdminTest::testCommentAdmin in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Tests/CommentAdminTest.php \Drupal\comment\Tests\CommentAdminTest::testCommentAdmin()
Tests comment bundle admin.
File
- core/
modules/ comment/ src/ Tests/ CommentAdminTest.php, line 161 - Contains \Drupal\comment\Tests\CommentAdminTest.
Class
- CommentAdminTest
- Tests comment approval functionality.
Namespace
Drupal\comment\TestsCode
public function testCommentAdmin() {
// Login.
$this
->drupalLogin($this->adminUser);
// Browse to comment bundle overview.
$this
->drupalGet('admin/structure/comment');
$this
->assertResponse(200);
// Make sure titles visible.
$this
->assertText('Comment type');
$this
->assertText('Description');
// Make sure the description is present.
$this
->assertText('Default comment field');
// Manage fields.
$this
->clickLink('Manage fields');
$this
->assertResponse(200);
// Make sure comment_body field is shown.
$this
->assertText('comment_body');
// Rest from here on in is field_ui.
}