You are here

public function BaseRoutingTest::testSymbolRoute in XHProf 8

Tests xhprof.symbol route.

@dataProvider dataSymbols

Parameters

string $symbol: The symbol to pass to URL generator.

string $expected: Expected result in URL.

File

tests/src/Kernel/BaseRoutingTest.php, line 30

Class

BaseRoutingTest
Tests routing generation.

Namespace

Drupal\Tests\xhprof\Kernel

Code

public function testSymbolRoute($symbol, $expected) {
  $run = 1;
  $url = Url::fromRoute('xhprof.symbol', [
    'run' => $run,
    'symbol' => $symbol,
  ]);
  $this
    ->assertSame('/admin/reports/xhprof/' . $run . '/symbol/' . $expected, $url
    ->toString());
}