Skip to content

Commit 68b83a5

Browse files
committed
Rename test cases so they match the pattern but exclude them from running
Those tests have previously been skipped as well, since the ant script globbed for `*Test` classes / files.
1 parent 956069c commit 68b83a5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* @author Daniel Espendiller <daniel@espendiller.net>
1212
*/
13-
public class KernelEventListenerReferences extends SymfonyLightCodeInsightFixtureTestCase {
13+
public class KernelEventListenerReferencesTest extends SymfonyLightCodeInsightFixtureTestCase {
1414

1515
public void setUp() throws Exception {
1616
super.setUp();
@@ -28,6 +28,7 @@ public String getTestDataPath() {
2828
* @see fr.adrienbrault.idea.symfony2plugin.config.dic.EventDispatcherEventReference
2929
*/
3030
public void testKernelEventListenerTagOnIndexCompletion() {
31+
if(System.getenv("PHPSTORM_ENV") != null) return;
3132

3233
assertCompletionContains(XmlFileType.INSTANCE, "<container>\n" +
3334
" <services>\n" +

src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/templating/twig/TwigAppResourcesReferences.java renamed to src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/templating/twig/TwigAppResourcesReferencesTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.jetbrains.twig.TwigFileType;
44
import fr.adrienbrault.idea.symfony2plugin.tests.SymfonyLightCodeInsightFixtureTestCase;
55

6-
public class TwigAppResourcesReferences extends SymfonyLightCodeInsightFixtureTestCase {
6+
public class TwigAppResourcesReferencesTest extends SymfonyLightCodeInsightFixtureTestCase {
77

88
public void setUp() throws Exception {
99
super.setUp();
@@ -19,6 +19,8 @@ public void setUp() throws Exception {
1919
* @see fr.adrienbrault.idea.symfony2plugin.templating.TwigTemplateGoToDeclarationHandler
2020
*/
2121
public void testTwigTemplatesInsideTwigFileCompletion() {
22+
if(System.getenv("PHPSTORM_ENV") != null) return;
23+
2224
assertCompletionContains(TwigFileType.INSTANCE, "{% extends '<caret>' %}", "::base.html.twig", ":Default:layout.html.twig");
2325
assertCompletionContains(TwigFileType.INSTANCE, "{% extends \"<caret>\" %}", "::base.html.twig", ":Default:layout.html.twig");
2426

@@ -61,6 +63,8 @@ public void testTwigTemplatesInsideTwigFileCompletion() {
6163
* @see fr.adrienbrault.idea.symfony2plugin.templating.TwigTemplateCompletionContributor
6264
*/
6365
public void testTwigTemplatesInsideTwigFileNavigation() {
66+
if(System.getenv("PHPSTORM_ENV") != null) return;
67+
6468
assertNavigationContainsFile(TwigFileType.INSTANCE, "{% extends '<caret>::base.html.twig' %}", "app/Resources/views/base.html.twig");
6569
assertNavigationContainsFile(TwigFileType.INSTANCE, "{% extends \"<caret>::base.html.twig\" %}", "app/Resources/views/base.html.twig");
6670

0 commit comments

Comments
 (0)