diff --git a/core/modules/comment/src/Tests/CommentNonNodeTest.php b/core/modules/comment/src/Tests/CommentNonNodeTest.php index 6feebb0..b597dcc 100644 --- a/core/modules/comment/src/Tests/CommentNonNodeTest.php +++ b/core/modules/comment/src/Tests/CommentNonNodeTest.php @@ -431,14 +431,14 @@ function testCommentFunctionality() { $new_entity = entity_create('entity_test', $data); $new_entity->save(); $this->drupalGet('entity_test/manage/' . $new_entity->id()); - $this->assertNoFieldChecked('edit-field-foobar-0-status-1'); - $this->assertFieldChecked('edit-field-foobar-0-status-2'); + $this->assertfieldChecked('edit-field-foobar-0-status-1'); + $this->assertNoFieldChecked('edit-field-foobar-0-status-2'); $this->assertNoField('edit-field-foobar-0-status-0'); $this->drupalGet('comment/reply/entity_test/' . $new_entity->id() . '/comment'); $this->assertResponse(200); - $this->assertfieldByName('subject[0][value]', '', 'Subject field found.'); - $this->assertfieldByName('comment_body[0][value]', '', 'Comment field found.'); + $this->assertNoFieldById('edit-subject-0-value', 'Subject field not found.'); + $this->assertNoFieldById('edit-comment-body-0-value', 'Comment field not found.'); } /**