You are here

protected property VariableTranslationTest::$databaseContents in Drupal 8

Database contents for tests.

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";',
    ],
  ],
];