You are here

protected function BlockTest::setUp in Zircon Profile 8.0

Same name in this branch
  1. 8.0 core/modules/views/tests/src/Unit/Plugin/views/display/BlockTest.php \Drupal\Tests\views\Unit\Plugin\views\display\BlockTest::setUp()
  2. 8.0 core/modules/block/tests/src/Unit/Plugin/migrate/source/BlockTest.php \Drupal\Tests\block\Unit\Plugin\migrate\source\BlockTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/block/tests/src/Unit/Plugin/migrate/source/BlockTest.php \Drupal\Tests\block\Unit\Plugin\migrate\source\BlockTest::setUp()

Prepopulate database contents.

Overrides MigrateSqlSourceTestCase::setUp

File

core/modules/block/tests/src/Unit/Plugin/migrate/source/BlockTest.php, line 75
Contains \Drupal\Tests\block\Unit\Plugin\migrate\source\BlockTest.

Class

BlockTest
Tests block source plugin.

Namespace

Drupal\Tests\block\Unit\Plugin\migrate\source

Code

protected function setUp() {
  $this->databaseContents['blocks'] = $this->expectedResults;
  $this->databaseContents['blocks_roles'] = $this->expectedBlocksRoles;
  $this->databaseContents['system'] = array(
    array(
      'filename' => 'modules/system/system.module',
      'name' => 'system',
      'type' => 'module',
      'owner' => '',
      'status' => '1',
      'throttle' => '0',
      'bootstrap' => '0',
      'schema_version' => '6055',
      'weight' => '0',
      'info' => 'a:0:{}',
    ),
  );
  parent::setUp();
}