protected function UploadTest::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/file/tests/src/Unit/Plugin/migrate/source/d6/UploadTest.php \Drupal\Tests\file\Unit\Plugin\migrate\source\d6\UploadTest::setUp()
Overrides MigrateSqlSourceTestCase::setUp
File
- core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ source/ d6/ UploadTest.php, line 47 - Contains \Drupal\Tests\file\Unit\Plugin\migrate\source\d6\UploadTest.
Class
- UploadTest
- Tests d6_upload source plugin.
Namespace
Drupal\Tests\file\Unit\Plugin\migrate\source\d6Code
protected function setUp() {
$this->databaseContents['upload'] = array(
array(
'fid' => '1',
'nid' => '1',
'vid' => '1',
'description' => 'file 1-1-1',
'list' => '0',
'weight' => '-1',
),
);
$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',
),
);
parent::setUp();
}