You are here

public function ParamConverterManagerTest::testConvertNoConverting in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php \Drupal\Tests\Core\ParamConverter\ParamConverterManagerTest::testConvertNoConverting()

@covers ::convert

File

core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php, line 208

Class

ParamConverterManagerTest
@coversDefaultClass \Drupal\Core\ParamConverter\ParamConverterManager @group ParamConverter

Namespace

Drupal\Tests\Core\ParamConverter

Code

public function testConvertNoConverting() {
  $route = new Route('/test');
  $defaults = [
    RouteObjectInterface::ROUTE_OBJECT => $route,
    RouteObjectInterface::ROUTE_NAME => 'test_route',
  ];
  $expected = $defaults;
  $result = $this->manager
    ->convert($defaults);
  $this
    ->assertEquals($expected, $result);
}