3 namespace Drupal\Tests\file\Kernel\Plugin\migrate\source\d6;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests D6 d6_upload source plugin.
10 * @covers \Drupal\file\Plugin\migrate\source\d6\Upload
14 class UploadTest extends MigrateSqlSourceTestBase {
19 public static $modules = ['file', 'migrate_drupal'];
24 public function providerSource() {
28 $tests[0]['source_data']['upload'] = [
33 'description' => 'file 1-1-1',
41 'description' => 'file 12-15-3',
47 $tests[0]['source_data']['node'] = [
53 'title' => 'Test title',
56 'created' => '1388271197',
57 'changed' => '1420861423',
70 'title' => 'Abantu zulu',
73 'created' => '1444238800',
74 'changed' => '1444238808',
84 // The expected results.
85 $tests[0]['expected_data'] = [
90 'description' => 'file 1-1-1',
103 'description' => 'file 12-15-3',