protected function CommentTypeTest::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/comment/src/Tests/CommentTypeTest.php \Drupal\comment\Tests\CommentTypeTest::setUp()
- 8 core/modules/comment/tests/src/Unit/Migrate/d7/CommentTypeTest.php \Drupal\Tests\comment\Unit\Migrate\d7\CommentTypeTest::setUp()
Same name and namespace in other branches
- 8.0 core/modules/comment/tests/src/Unit/Migrate/d7/CommentTypeTest.php \Drupal\Tests\comment\Unit\Migrate\d7\CommentTypeTest::setUp()
Overrides MigrateSqlSourceTestCase::setUp
File
- core/
modules/ comment/ tests/ src/ Unit/ Migrate/ d7/ CommentTypeTest.php, line 45 - Contains \Drupal\Tests\comment\Unit\Migrate\d7\CommentTypeTest.
Class
- CommentTypeTest
- Tests D7 comment type source plugin.
Namespace
Drupal\Tests\comment\Unit\Migrate\d7Code
protected function setUp() {
$this->databaseContents['node_type'] = array(
array(
'type' => 'article',
'name' => 'Article',
'base' => 'node_content',
'module' => 'node',
'description' => 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.',
'help' => 'Help text for articles',
'has_title' => '1',
'title_label' => 'Title',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'disabled' => '0',
'orig_type' => 'article',
),
);
$this->databaseContents['field_config_instance'] = array(
array(
'id' => '14',
'field_id' => '1',
'field_name' => 'comment_body',
'entity_type' => 'comment',
'bundle' => 'comment_node_article',
'data' => 'a:0:{}',
'deleted' => '0',
),
);
$this->databaseContents['variable'] = array(
array(
'name' => 'comment_default_mode_article',
'value' => serialize(1),
),
array(
'name' => 'comment_per_page_article',
'value' => serialize(50),
),
array(
'name' => 'comment_anonymous_article',
'value' => serialize(0),
),
array(
'name' => 'comment_form_location_article',
'value' => serialize(1),
),
array(
'name' => 'comment_preview_article',
'value' => serialize(0),
),
array(
'name' => 'comment_subject_article',
'value' => serialize(1),
),
);
parent::setUp();
}