You are here

public function LinkBindingTest::setUp in Drupal 7 to 8/9 Module Upgrader 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/Routing/LinkBinding/LinkBindingTest.php, line 19

Class

LinkBindingTest
@group DMU.Routing

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Routing\LinkBinding

Code

public function setUp() {
  parent::setUp();
  $item = [
    'title' => 'Diff',
    'description' => 'Diff settings.',
    'file' => 'diff.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'diff_admin_settings',
    ],
    'access arguments' => [
      'administer site configuration',
    ],
  ];
  $this->source = new Drupal7Route('admin/config/content/diff', $item);
  $this->destination = new Drupal8Route('diff.settings', new Route('/admin/config/content/diff'), $this
    ->createMock('\\Drupal\\Core\\Routing\\RouteProviderInterface'));
}