You are here

public function WebformBreadcrumbBuilderTest::testBuildUserSubmission in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Kernel/Breadcrumb/WebformBreadcrumbBuilderTest.php \Drupal\Tests\webform\Kernel\Breadcrumb\WebformBreadcrumbBuilderTest::testBuildUserSubmission()

Test build user submission breadcrumbs.

File

tests/src/Kernel/Breadcrumb/WebformBreadcrumbBuilderTest.php, line 444

Class

WebformBreadcrumbBuilderTest
Test webform breadcrumb builder.

Namespace

Drupal\Tests\webform\Kernel\Breadcrumb

Code

public function testBuildUserSubmission() {
  $route_match = $this
    ->getMockRouteMatch('entity.webform.user.submissions', [
    [
      'webform',
      $this->webform,
    ],
  ]);
  $links = [
    Link::createFromRoute($this->webform
      ->label(), 'entity.webform.canonical', [
      'webform' => $this->webform
        ->id(),
    ]),
  ];
  $this
    ->assertLinks($route_match, $links);
}