Mercurial > hg > cmmr2012-drupal-site
diff core/modules/comment/tests/src/Kernel/CommentItemTest.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/comment/tests/src/Kernel/CommentItemTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/comment/tests/src/Kernel/CommentItemTest.php Thu May 09 15:34:47 2019 +0100 @@ -27,6 +27,7 @@ protected function setUp() { parent::setUp(); + $this->installEntitySchema('comment'); $this->installSchema('comment', ['comment_entity_statistics']); $this->installConfig(['comment']); } @@ -70,6 +71,7 @@ */ public function testCommentAuthorName() { $this->installEntitySchema('comment'); + $this->addDefaultCommentField('entity_test', 'entity_test', 'comment'); $host = EntityTest::create(['name' => $this->randomString()]); $host->save(); @@ -81,6 +83,7 @@ 'name' => 'entity-test', 'mail' => 'entity@localhost', 'entity_type' => 'entity_test', + 'field_name' => 'comment', 'entity_id' => $host->id(), 'comment_type' => 'entity_test', 'status' => 1, @@ -99,6 +102,7 @@ 'mail' => 'test@example.com', 'homepage' => 'https://example.com', 'entity_type' => 'entity_test', + 'field_name' => 'comment', 'entity_id' => $host->id(), 'comment_type' => 'entity_test', 'status' => 1,