Code Duplication    Length = 8-8 lines in 2 locations

tests/CompleteAliasingTest.php 1 location

@@ 60-67 (lines=8) @@
57
        $this->assertInstanceOf(ContainerInterface::class, $controller->getContainer());
58
    }
59
60
    public function testGetControllerServiceMissing()
61
    {
62
        $request = new Request();
63
        $request->attributes->set('_controller', 'some.missing.controller.service:someAction');
64
65
        $controller = $this->controllerResolver->getController($request);
66
        $this->assertNull($controller);
67
    }
68
69
    public function testGetControllerAliasConfig()
70
    {

tests/HttpKernel/Controller/ControllerResolverTest.php 1 location

@@ 24-31 (lines=8) @@
21
        $this->controllerResolver = $this->createControllerResolverWithMocks();
22
    }
23
24
    public function testGetController()
25
    {
26
        $request = new Request();
27
        $request->attributes->set('_controller', 'SomeController::someAction');
28
29
        $controller = $this->controllerResolver->getController($request);
30
        $this->assertNull($controller);
31
    }
32
33
    public function testGetArguments()
34
    {