Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 52ee25f

Browse files
committed
Added missing unit tests for !php/const autocompletion
1 parent 6e02aa1 commit 52ee25f

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

‎src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/completion/yaml/YamlGotoCompletionRegistrarTest.java

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,33 @@ public void testThatDecoratesPrioritizeLookupElementOnInstance() {
103103
}
104104

105105
public void testThatPhpConstAreCompletedAndNavigable() {
106-
assertCompletionIsEmpty(YAMLFileType.YML, "" +
107-
"services:\n" +
108-
" foo:\n" +
109-
" class: Foo\\Foobar\n" +
110-
" arguments: \n" +
111-
" - !php/const Foo\\Bar<caret>::BAZ\n"
106+
assertCompletionContains(
107+
YAMLFileType.YML,
108+
"services:\n" +
109+
" foo:\n" +
110+
" class: Foo\\Foobar\n" +
111+
" arguments: \n" +
112+
" - !php/const <caret>\n",
113+
"Bar", "Foobar"
114+
);
115+
116+
assertCompletionContains(
117+
YAMLFileType.YML,
118+
"services:\n" +
119+
" foo:\n" +
120+
" class: Foo\\Foobar\n" +
121+
" arguments: \n" +
122+
" - !php/const Foo\\Bar::<caret>\n",
123+
"BAZ"
124+
);
125+
126+
assertCompletionIsEmpty(
127+
YAMLFileType.YML,
128+
"services:\n" +
129+
" foo:\n" +
130+
" class: Foo\\Foobar\n" +
131+
" arguments: \n" +
132+
" - !php/const Foo\\Bar<caret>::BAZ\n"
112133
);
113134
}
114135
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /