Drupal6SqlBaseTest::$databaseContents

Same name in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest::databaseContents
  2. 8.9.x core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest::databaseContents
  3. 11.x core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest::databaseContents

Minimum database contents needed to test Drupal6SqlBase.

Type: databaseContents

File

core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php, line 33

Class

Drupal6SqlBaseTest
Tests the D6 SQL base class.

Namespace

Drupal\Tests\migrate_drupal\Unit\source\d6

Code

protected $databaseContents = [
    'system' => [
        [
            'filename' => 'sites/all/modules/module1',
            'name' => 'module1',
            'type' => 'module',
            'status' => 1,
            'schema_version' => -1,
        ],
        [
            'filename' => 'sites/all/modules/module2',
            'name' => 'module2',
            'type' => 'module',
            'status' => 0,
            'schema_version' => 7201,
        ],
        [
            'filename' => 'sites/all/modules/test2',
            'name' => 'test2',
            'type' => 'theme',
            'status' => 1,
            'schema_version' => -1,
        ],
    ],
    'variable' => [
        [
            'name' => 'my_variable',
            'value' => 'b:1;',
        ],
    ],
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.