55
66package com .magento .idea .magento2plugin .linemarker .php ;
77
8+ import com .magento .idea .magento2plugin .linemarker .LinemarkerFixtureTestCase ;
9+
810@ SuppressWarnings ("PMD.JUnitTestContainsTooManyAsserts" )
9- public class PluginTargetLinemarkerRegistrarTest extends LinemarkerPhpFixtureTestCase {
11+ public class PluginTargetLinemarkerRegistrarTest extends LinemarkerFixtureTestCase {
1012
1113 /**
1214 * Tests linemarkers in a class which plugs in to a class and its method.
1315 */
1416 public void testPluginToClassShouldHaveLinemarker () {
15- myFixture .configureByFile (this .getFixturePath ("Topmenu.php" ));
17+ myFixture .configureByFile (this .getFixturePath ("Topmenu.php" , "php" ));
1618
1719 assertHasLinemarkerWithTooltipAndIcon ("Navigate to target method" , "/nodes/method.svg" );
1820 assertHasLinemarkerWithTooltipAndIcon ("Navigate to target class" , "/nodes/class.svg" );
@@ -22,7 +24,7 @@ public void testPluginToClassShouldHaveLinemarker() {
2224 * Tests linemarkers in a class which plugs in to an interface and its method.
2325 */
2426 public void testPluginToInterfaceShouldHaveLinemarker () {
25- myFixture .configureByFile (this .getFixturePath ("MviewState.php" ));
27+ myFixture .configureByFile (this .getFixturePath ("MviewState.php" , "php" ));
2628
2729 assertHasLinemarkerWithTooltipAndIcon ("Navigate to target method" , "/nodes/method.svg" );
2830 assertHasLinemarkerWithTooltipAndIcon ("Navigate to target class" , "/nodes/class.svg" );
@@ -32,7 +34,7 @@ public void testPluginToInterfaceShouldHaveLinemarker() {
3234 * Tests linemarkers in a regular class which does not plug in to any class or interface.
3335 */
3436 public void testRegularClassShouldNotHaveLinemarker () {
35- myFixture .configureByFile (this .getFixturePath ("ClassNotConfiguredInDiXml.php" ));
37+ myFixture .configureByFile (this .getFixturePath ("ClassNotConfiguredInDiXml.php" , "php" ));
3638
3739 assertHasNoLinemarkerWithTooltipAndIcon ("Navigate to target method" , "/nodes/method.svg" );
3840 assertHasNoLinemarkerWithTooltipAndIcon ("Navigate to target class" , "/nodes/class.svg" );
0 commit comments