3 namespace Drupal\Tests\comment\Functional\Views;
5 use Drupal\Tests\comment\Functional\CommentTestBase as CommentBrowserTestBase;
8 * Tests comment edit functionality.
12 class CommentEditTest extends CommentBrowserTestBase {
17 protected $profile = 'standard';
20 * Tests comment label in admin view.
22 public function testCommentEdit() {
23 $this->drupalLogin($this->adminUser);
24 // Post a comment to node.
25 $node_comment = $this->postComment($this->node, $this->randomMachineName(), $this->randomMachineName(), TRUE);
26 $this->drupalGet('admin/content/comment');
27 $this->assertText($this->adminUser->label());
28 $this->drupalGet($node_comment->toUrl('edit-form'));
30 'comment_body[0][value]' => $this->randomMachineName(),
32 $this->drupalPostForm(NULL, $edit, t('Save'));
33 $this->drupalGet('admin/content/comment');
34 $this->assertText($this->adminUser->label());