protected function CommentStringIdEntitiesTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Tests/CommentStringIdEntitiesTest.php \Drupal\comment\Tests\CommentStringIdEntitiesTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ comment/ src/ Tests/ CommentStringIdEntitiesTest.php, line 34 - Contains \Drupal\comment\Tests\CommentStringIdEntitiesTest.
Class
- CommentStringIdEntitiesTest
- Tests that comment fields cannot be added to entities with non-integer IDs.
Namespace
Drupal\comment\TestsCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('comment');
$this
->installSchema('comment', array(
'comment_entity_statistics',
));
// Create the comment body field storage.
$this
->installConfig(array(
'field',
));
}