8000 change routing condition on test · symfony/symfony@2fdd7e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fdd7e5

Browse files
committed
change routing condition on test
1 parent 2261fbe commit 2fdd7e5

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/ObjectsProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function getRoutes()
5454
'localhost',
5555
array('http', 'https'),
5656
array('put', 'post'),
57-
"context.getMethod() in ['GET', 'HEAD']"
57+
"context.getMethod() in ['GET', 'HEAD', 'POST']"
5858
),
5959
);
6060
}

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"opt1": "val1",
1414
"opt2": "val2"
1515
},
16-
"condition": "context.getMethod() in ['GET', 'HEAD']"
16+
"condition": "context.getMethod() in ['GET', 'HEAD', 'POST']"
1717
}

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
- `compiler_class`: Symfony\Component\Routing\RouteCompiler
1212
- `opt1`: val1
1313
- `opt2`: val2
14-
- Condition: context.getMethod() in ['GET', 'HEAD']
14+
- Condition: context.getMethod() in ['GET', 'HEAD', 'POST']

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
| Options | compiler_class: Symfony\Component\Routing\RouteCompiler |
1515
| | opt1: val1 |
1616
| | opt2: val2 |
17-
| Condition | context.getMethod() in ['GET', 'HEAD'] |
17+
| Condition | context.getMethod() in ['GET', 'HEAD', 'POST'] |
1818
+--------------+-------------------------------------------------------------------+

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
<option key="opt1">val1</option>
1212
<option key="opt2">val2</option>
1313
</options>
14-
<condition>context.getMethod() in ['GET', 'HEAD']</condition>
14+
<condition>context.getMethod() in ['GET', 'HEAD', 'POST']</condition>
1515
</route>

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_collection_1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"opt1": "val1",
3535
"opt2": "val2"
3636
},
37-
"condition": "context.getMethod() in ['GET', 'HEAD']"
37+
"condition": "context.getMethod() in ['GET', 'HEAD', 'POST']"
3838
}
3939
}

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_collection_1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ route_2
3535
- `compiler_class`: Symfony\Component\Routing\RouteCompiler
3636
- `opt1`: val1
3737
- `opt2`: val2
38-
- Condition: context.getMethod() in ['GET', 'HEAD']
38+
- Condition: context.getMethod() in ['GET', 'HEAD', 'POST']
3939

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_collection_1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
<option key="opt1">val1</option>
3232
<option key="opt2">val2</option>
3333
</options>
34-
<condition>context.getMethod() in ['GET', 'HEAD']</condition>
34+
<condition>context.getMethod() in ['GET', 'HEAD', 'POST']</condition>
3535
</route>
3636
</routes>

0 commit comments

Comments
 (0)
0