You are here

protected property VariableMultiRowTestBase::$databaseContents in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/tests/src/Unit/source/VariableMultiRowTestBase.php \Drupal\Tests\migrate_drupal\Unit\source\VariableMultiRowTestBase::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/migrate_drupal/tests/src/Unit/source/VariableMultiRowTestBase.php, line 38
Contains \Drupal\Tests\migrate_drupal\Unit\source\VariableMultiRowTestBase.

Class

VariableMultiRowTestBase
Base class for variable multirow source unit tests.

Namespace

Drupal\Tests\migrate_drupal\Unit\source

Code

protected $databaseContents = array(
  'variable' => array(
    array(
      'name' => 'foo',
      'value' => 'i:1;',
    ),
    array(
      'name' => 'bar',
      'value' => 'b:0;',
    ),
  ),
);