VariableTranslationTest::$databaseContents

Database contents for tests.

Type: databaseContents

Overrides MigrateSqlSourceTestCase::$databaseContents

File

core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php, line 53

Class

VariableTranslationTest
Tests the variable source plugin.

Namespace

Drupal\Tests\migrate_drupal\Unit\source\d6

Code

protected $databaseContents = [
    'i18n_variable' => [
        [
            'name' => 'site_slogan',
            'language' => 'fr',
            'value' => 's:19:"Migrate est génial";',
        ],
        [
            'name' => 'site_name',
            'language' => 'fr',
            'value' => 's:11:"nom de site";',
        ],
        [
            'name' => 'site_slogan',
            'language' => 'mi',
            'value' => 's:19:"Ko whakamataku heke";',
        ],
        [
            'name' => 'site_name',
            'language' => 'mi',
            'value' => 's:9:"ingoa_pae";',
        ],
    ],
];

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