protected function VocabularyTest::setUp in Zircon Profile 8.0
Same name in this branch
- 8.0 core/modules/taxonomy/tests/src/Unit/Migrate/d6/VocabularyTest.php \Drupal\Tests\taxonomy\Unit\Migrate\d6\VocabularyTest::setUp()
- 8.0 core/modules/taxonomy/tests/src/Unit/Migrate/d7/VocabularyTest.php \Drupal\Tests\taxonomy\Unit\Migrate\d7\VocabularyTest::setUp()
Same name and namespace in other branches
- 8 core/modules/taxonomy/tests/src/Unit/Migrate/d6/VocabularyTest.php \Drupal\Tests\taxonomy\Unit\Migrate\d6\VocabularyTest::setUp()
Overrides MigrateSqlSourceTestCase::setUp
File
- core/
modules/ taxonomy/ tests/ src/ Unit/ Migrate/ d6/ VocabularyTest.php, line 62 - Contains \Drupal\Tests\taxonomy\Unit\Migrate\d6\VocabularyTest.
Class
- VocabularyTest
- Tests D6 vocabulary source plugin.
Namespace
Drupal\Tests\taxonomy\Unit\Migrate\d6Code
protected function setUp() {
foreach ($this->expectedResults as &$row) {
foreach ($row['node_types'] as $type) {
$this->databaseContents['vocabulary_node_types'][] = [
'type' => $type,
'vid' => $row['vid'],
];
}
unset($row['node_types']);
}
$this->databaseContents['vocabulary'] = $this->expectedResults;
parent::setUp();
}