You are here

public function MenuLinkSourceTest::setUp in Zircon Profile 8

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

Overrides MigrateSqlSourceTestCase::setUp

File

core/modules/menu_link_content/tests/src/Unit/Plugin/migrate/source/MenuLinkSourceTest.php, line 87
Contains \Drupal\Tests\menu_link_content\Unit\Plugin\migrate\source\MenuLinkSourceTest.

Class

MenuLinkSourceTest
Tests menu link source plugin.

Namespace

Drupal\Tests\menu_link_content\Unit\Plugin\migrate\source

Code

public function setUp() {
  foreach ($this->expectedResults as $k => $row) {
    $row['options'] = serialize($row['options']);
    $this->databaseContents['menu_links'][$k] = $row;
  }
  parent::setUp();
}