Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f67221

Browse files
committed
[Routing] remove an unused routing fixture
This was initially removed in #13361 and accidentally added again in #11394.
1 parent 7fbda2e commit 6f67221

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/Symfony/Component/Routing/Tests/Fixtures/validpattern.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,5 @@
1111
<condition>context.getMethod() == "GET"</condition>
1212
</route>
1313

14-
<route id="blog_show_legacy" path="/blog/{slug}" host="{locale}.example.com">
15-
<default key="_controller">MyBundle:Blog:show</default>
16-
<requirement key="_method">GET|POST|put|OpTiOnS</requirement>
17-
<requirement key="_scheme">hTTps</requirement>
18-
<requirement key="locale">\w+</requirement>
19-
<option key="compiler_class">RouteCompiler</option>
20-
<condition>context.getMethod() == "GET"</condition>
21-
</route>
22-
2314
<route id="blog_show_inherited" path="/blog/{slug}" />
2415
</routes>

src/Symfony/Component/Routing/Tests/Loader/XmlFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testLoadWithImport()
7070
$routeCollection = $loader->load('validresource.xml');
7171
$routes = $routeCollection->all();
7272

73-
$this->assertCount(3, $routes, 'Two routes are loaded');
73+
$this->assertCount(2, $routes, 'Two routes are loaded');
7474
$this->assertContainsOnly('Symfony\Component\Routing\Route', $routes);
7575

7676
foreach ($routes as $route) {

0 commit comments

Comments
 (0)