5
5
6
6
package com .magento .idea .magento2plugin .linemarker .php ;
7
7
8
+ import com .magento .idea .magento2plugin .linemarker .LinemarkerFixtureTestCase ;
9
+
8
10
@ SuppressWarnings ("PMD.JUnitTestContainsTooManyAsserts" )
9
- public class PluginTargetLinemarkerRegistrarTest extends LinemarkerPhpFixtureTestCase {
11
+ public class PluginTargetLinemarkerRegistrarTest extends LinemarkerFixtureTestCase {
10
12
11
13
/**
12
14
* Tests linemarkers in a class which plugs in to a class and its method.
13
15
*/
14
16
public void testPluginToClassShouldHaveLinemarker () {
15
- myFixture .configureByFile (this .getFixturePath ("Topmenu.php" ));
17
+ myFixture .configureByFile (this .getFixturePath ("Topmenu.php" , "php" ));
16
18
17
19
assertHasLinemarkerWithTooltipAndIcon ("Navigate to target method" , "/nodes/method.svg" );
18
20
assertHasLinemarkerWithTooltipAndIcon ("Navigate to target class" , "/nodes/class.svg" );
@@ -22,7 +24,7 @@ public void testPluginToClassShouldHaveLinemarker() {
22
24
* Tests linemarkers in a class which plugs in to an interface and its method.
23
25
*/
24
26
public void testPluginToInterfaceShouldHaveLinemarker () {
25
- myFixture .configureByFile (this .getFixturePath ("MviewState.php" ));
27
+ myFixture .configureByFile (this .getFixturePath ("MviewState.php" , "php" ));
26
28
27
29
assertHasLinemarkerWithTooltipAndIcon ("Navigate to target method" , "/nodes/method.svg" );
28
30
assertHasLinemarkerWithTooltipAndIcon ("Navigate to target class" , "/nodes/class.svg" );
@@ -32,7 +34,7 @@ public void testPluginToInterfaceShouldHaveLinemarker() {
32
34
* Tests linemarkers in a regular class which does not plug in to any class or interface.
33
35
*/
34
36
public void testRegularClassShouldNotHaveLinemarker () {
35
- myFixture .configureByFile (this .getFixturePath ("ClassNotConfiguredInDiXml.php" ));
37
+ myFixture .configureByFile (this .getFixturePath ("ClassNotConfiguredInDiXml.php" , "php" ));
36
38
37
39
assertHasNoLinemarkerWithTooltipAndIcon ("Navigate to target method" , "/nodes/method.svg" );
38
40
assertHasNoLinemarkerWithTooltipAndIcon ("Navigate to target class" , "/nodes/class.svg" );
0 commit comments