protected property LanguageTest::$databaseContents in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/tests/src/Unit/Migrate/LanguageTest.php \Drupal\Tests\language\Unit\Migrate\LanguageTest::databaseContents
The database contents.
Database contents represents a mocked database. It should contain an associative array with the table name as key, and as many nested arrays as the number of mocked rows. Each of those faked rows must be another array with the column name as the key and the value as the cell.
Type: array
Overrides MigrateSqlSourceTestCase::$databaseContents
File
- core/
modules/ language/ tests/ src/ Unit/ Migrate/ LanguageTest.php, line 28 - Contains \Drupal\Tests\language\Unit\Migrate\LanguageTest.
Class
- LanguageTest
- @coversDefaultClass \Drupal\language\Plugin\migrate\source\Language @group language
Namespace
Drupal\Tests\language\Unit\MigrateCode
protected $databaseContents = array(
'languages' => array(
array(
'language' => 'en',
'name' => 'English',
'native' => 'English',
'direction' => '0',
'enabled' => '1',
'plurals' => '0',
'formula' => '',
'domain' => '',
'prefix' => '',
'weight' => '0',
'javascript' => '',
),
array(
'language' => 'fr',
'name' => 'French',
'native' => 'Français',
'direction' => '0',
'enabled' => '0',
'plurals' => '2',
'formula' => '($n>1)',
'domain' => '',
'prefix' => 'fr',
'weight' => '0',
'javascript' => '',
),
),
);