You are here

protected function UploadInstanceTest::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/file/tests/src/Unit/Plugin/migrate/source/d6/UploadInstanceTest.php \Drupal\Tests\file\Unit\Plugin\migrate\source\d6\UploadInstanceTest::setUp()

Overrides MigrateSqlSourceTestCase::setUp

File

core/modules/file/tests/src/Unit/Plugin/migrate/source/d6/UploadInstanceTest.php, line 40
Contains \Drupal\Tests\file\Unit\Plugin\migrate\source\d6\UploadInstanceTest.

Class

UploadInstanceTest
Tests d6_upload_instance source plugin.

Namespace

Drupal\Tests\file\Unit\Plugin\migrate\source\d6

Code

protected function setUp() {
  $this->databaseContents['node_type'] = array(
    array(
      'type' => 'article',
    ),
    array(
      'type' => 'company',
    ),
  );
  $this->databaseContents['variable'] = array(
    array(
      'name' => 'upload_article',
      'value' => serialize(TRUE),
    ),
    array(
      'name' => 'upload_company',
      'value' => serialize(FALSE),
    ),
    array(
      'name' => 'upload_uploadsize_default',
      'value' => serialize(16),
    ),
    array(
      'name' => 'upload_extensions_default',
      'value' => serialize('txt pdf'),
    ),
  );
  parent::setUp();
}