function UrlTest::testGetRouteParameters

Tests the getRouteParameters() method.

@legacy-covers ::getRouteParameters

Attributes

#[Depends('testUrlFromRequest')]

Parameters

\Drupal\Core\Url[] $urls: An array of Url objects.

File

core/tests/Drupal/Tests/Core/UrlTest.php, line 408

Class

UrlTest
Tests Drupal\Core\Url.

Namespace

Drupal\Tests\Core

Code

public function testGetRouteParameters($urls) : void {
  foreach ($urls as $index => $url) {
    $this->assertSame($this->map[$index][1], $url->getRouteParameters());
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.