protected function CommentVariableTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/tests/src/Unit/Migrate/d6/CommentVariableTest.php \Drupal\Tests\comment\Unit\Migrate\d6\CommentVariableTest::setUp()
Overrides MigrateSqlSourceTestCase::setUp
File
- core/
modules/ comment/ tests/ src/ Unit/ Migrate/ d6/ CommentVariableTest.php, line 47 - Contains \Drupal\Tests\comment\Unit\Migrate\d6\CommentVariableTest.
Class
- CommentVariableTest
- @coversDefaultClass \Drupal\comment\Plugin\migrate\source\d6\CommentVariable @group comment
Namespace
Drupal\Tests\comment\Unit\Migrate\d6Code
protected function setUp() {
$this->databaseContents['node_type'] = array(
array(
'type' => 'page',
),
);
$this->databaseContents['variable'] = array(
array(
'name' => 'comment_page',
'value' => serialize(1),
),
array(
'name' => 'comment_default_mode_page',
'value' => serialize(1),
),
array(
'name' => 'comment_default_order_page',
'value' => serialize(1),
),
array(
'name' => 'comment_default_per_page_page',
'value' => serialize(50),
),
array(
'name' => 'comment_controls_page',
'value' => serialize(1),
),
array(
'name' => 'comment_anonymous_page',
'value' => serialize(1),
),
array(
'name' => 'comment_subject_field_page',
'value' => serialize(1),
),
array(
'name' => 'comment_preview_page',
'value' => serialize(1),
),
array(
'name' => 'comment_form_location_page',
'value' => serialize(1),
),
);
parent::setUp();
}