Skip to content

Commit 4d0dab4

Browse files
committed
Correct intention names and add descriptions
1 parent 4594260 commit 4d0dab4

File tree

7 files changed

+17
-5
lines changed

7 files changed

+17
-5
lines changed

src/main/java/de/espend/idea/php/phpunit/intention/AddMockMethodIntention.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private String getMockInstanceFromMethodReferenceScope(@NotNull PsiElement psiEl
106106
@NotNull
107107
@Override
108108
public String getFamilyName() {
109-
return "PHPUnit";
109+
return "Add mock method";
110110
}
111111

112112
@NotNull

src/main/java/de/espend/idea/php/phpunit/intention/ConstructorMockIntention.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public boolean isAvailable(@NotNull Project project, Editor editor, @NotNull Psi
7777
@NotNull
7878
@Override
7979
public String getFamilyName() {
80-
return "PHPUnit";
80+
return "Add constructor mocks";
8181
}
8282

8383
@NotNull

src/main/java/de/espend/idea/php/phpunit/intention/MethodExceptionIntentionAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private Method getMethodScope(@NotNull PsiElement psiElement) {
7676
@NotNull
7777
@Override
7878
public String getFamilyName() {
79-
return "PHPUnit";
79+
return "Expected exception";
8080
}
8181

8282
@NotNull

src/main/java/de/espend/idea/php/phpunit/intention/TestRunIntentionAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private PsiElement getTestContextElement(@NotNull PsiElement psiElement) {
5050
@NotNull
5151
@Override
5252
public String getFamilyName() {
53-
return "PHPUnit";
53+
return "Run Test";
5454
}
5555

5656
@NotNull
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
Collect possible methods in mocked class and create mock method
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
Add constructor arguments with stubbed argument classes
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<html>
22
<body>
3-
Collect possible expcetion in method and insert as assertion
3+
Collect possible exception in method and insert as assertion
44
<!-- tooltip end -->
55
</body>
66
</html>

0 commit comments

Comments
 (0)