protected function TermNodeTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/tests/src/Unit/Migrate/d6/TermNodeTest.php \Drupal\Tests\taxonomy\Unit\Migrate\d6\TermNodeTest::setUp()
Overrides MigrateSqlSourceTestCase::setUp
File
- core/
modules/ taxonomy/ tests/ src/ Unit/ Migrate/ d6/ TermNodeTest.php, line 42 - Contains \Drupal\Tests\taxonomy\Unit\Migrate\d6\TermNodeTest.
Class
- TermNodeTest
- Tests d6_term_node source plugin.
Namespace
Drupal\Tests\taxonomy\Unit\Migrate\d6Code
protected function setUp() {
$this->databaseContents['term_node'] = array(
array(
'nid' => '1',
'vid' => '1',
'tid' => '1',
),
array(
'nid' => '1',
'vid' => '1',
'tid' => '4',
),
array(
'nid' => '1',
'vid' => '1',
'tid' => '5',
),
);
$this->databaseContents['node'] = array(
array(
'nid' => '1',
'vid' => '1',
'type' => 'story',
'language' => '',
'title' => 'Test title',
'uid' => '1',
'status' => '1',
'created' => '1388271197',
'changed' => '1420861423',
'comment' => '0',
'promote' => '0',
'moderate' => '0',
'sticky' => '0',
'tnid' => '0',
'translate' => '0',
),
);
$this->databaseContents['term_data'] = array(
array(
'tid' => '1',
'vid' => '3',
'name' => 'term 1 of vocabulary 3',
'description' => 'description of term 1 of vocabulary 3',
'weight' => '0',
),
array(
'tid' => '4',
'vid' => '3',
'name' => 'term 4 of vocabulary 3',
'description' => 'description of term 4 of vocabulary 3',
'weight' => '6',
),
array(
'tid' => '5',
'vid' => '3',
'name' => 'term 5 of vocabulary 3',
'description' => 'description of term 5 of vocabulary 3',
'weight' => '7',
),
);
parent::setUp();
}