You are here

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

File

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

Class

LinkBindingTest
@group DMU.Routing

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Routing\LinkBinding

Code

public function testBuild() {
  $link = $this
    ->getMockBinding()
    ->build();
  $this
    ->assertEquals('diff.settings', $link['route_name']);
  $this
    ->assertEquals('Diff', $link['title']);
  $this
    ->assertArrayNotHasKey('weight', $link);
}