function CommentStringIdEntitiesTest::setUp
Overrides KernelTestBase::setUp
File
- 
              core/
modules/ comment/ tests/ src/ Kernel/ CommentStringIdEntitiesTest.php, line 35  
Class
- CommentStringIdEntitiesTest
 - Tests that comment fields cannot be added to entities with non-integer IDs.
 
Namespace
Drupal\Tests\comment\KernelCode
protected function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('comment');
  $this->installEntitySchema('entity_test_string_id');
  $this->installSchema('comment', [
    'comment_entity_statistics',
  ]);
  // Create the comment body field storage.
  $this->installConfig([
    'field',
  ]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.