File tree 2 files changed +15
-0
lines changed
tests/fr/adrienbrault/idea/symfony2plugin/tests/routing
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ public void setUp() throws Exception {
15
15
super .setUp ();
16
16
17
17
myFixture .copyFileToProject ("services.yml" , "services.yml" );
18
+ myFixture .copyFileToProject ("routing.xml" , "routing.xml" );
18
19
19
20
myFixture .configureByText ("classes.php" , "<?php\n " +
20
21
"namespace AppBundle;\n " +
@@ -103,4 +104,14 @@ public void testControllerAsServiceNavigation() {
103
104
104
105
}
105
106
107
+ public void testControllerAsServiceCompletion () {
108
+
109
+ assertCompletionContains (YAMLFileType .YML , "foo:\n " +
110
+ " pattern: /\n " +
111
+ " defaults: { _controller: app.hello_controller:<caret> }\n "
112
+ , "app.hello_controller:indexAction"
113
+ );
114
+
115
+ }
116
+
106
117
}
Original file line number Diff line number Diff line change 8
8
<default key =" _controller" >AcmeDemoBundle:Demo:hello</default >
9
9
</route >
10
10
11
+ <route id =" xml_route" path =" /blog/{slug}" >
12
+ <default key =" _controller" >app.hello_controller:indexAction</default >
13
+ </route >
14
+
11
15
</routes >
You can’t perform that action at this time.
0 commit comments