You are here

protected function ContactCategoryTest::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/contact/tests/src/Unit/Plugin/migrate/source/ContactCategoryTest.php \Drupal\Tests\contact\Unit\Plugin\migrate\source\ContactCategoryTest::setUp()

Overrides MigrateSqlSourceTestCase::setUp

File

core/modules/contact/tests/src/Unit/Plugin/migrate/source/ContactCategoryTest.php, line 51
Contains \Drupal\Tests\contact\Unit\Plugin\migrate\source\ContactCategoryTest.

Class

ContactCategoryTest
Tests contact_category source plugin.

Namespace

Drupal\Tests\contact\Unit\Plugin\migrate\source

Code

protected function setUp() {
  foreach ($this->expectedResults as $k => $row) {
    $this->databaseContents['contact'][$k] = $row;
    $this->databaseContents['contact'][$k]['recipients'] = implode(',', $row['recipients']);
  }
  parent::setUp();
}