Skip to content

Commit d89faac

Browse files
212: Changed negative tests base method used
1 parent 15827e9 commit d89faac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/com/magento/idea/magento2plugin/completion/xml/CrontabCompletionRegistrarTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void testCronJobInstanceMustHaveCompletion() {
2727
*/
2828
public void testNotCrontabXmlMustHaveNotCompletion() {
2929
final String filePath = this.getFixturePath(WRONG_FILE_NAME);
30-
assertCompletionNotShowing(filePath);
30+
assertFileNotContainsCompletions(filePath, EXPECTED_INSTANCE);
3131
}
3232

3333
/**
@@ -36,7 +36,7 @@ public void testNotCrontabXmlMustHaveNotCompletion() {
3636
*/
3737
public void testNotInstanceAttrMustHaveNotCompletion() {
3838
final String filePath = this.getFixturePath(CrontabXmlTemplate.FILE_NAME);
39-
assertCompletionNotShowing(filePath);
39+
assertFileNotContainsCompletions(filePath, EXPECTED_INSTANCE);
4040
}
4141

4242
/**
@@ -45,7 +45,7 @@ public void testNotInstanceAttrMustHaveNotCompletion() {
4545
*/
4646
public void testNotJobTagMustHaveNotCompletion() {
4747
final String filePath = this.getFixturePath(CrontabXmlTemplate.FILE_NAME);
48-
assertCompletionNotShowing(filePath);
48+
assertFileNotContainsCompletions(filePath, EXPECTED_INSTANCE);
4949
}
5050

5151
/**
@@ -63,6 +63,6 @@ public void testCronJobMethodMustHaveCompletion() {
6363
*/
6464
public void testNotCrontabXmlMethodMustHaveNotCompletion() {
6565
final String filePath = this.getFixturePath(WRONG_FILE_NAME);
66-
assertCompletionNotShowing(filePath);
66+
assertFileNotContainsCompletions(filePath, EXPECTED_METHOD);
6767
}
6868
}

0 commit comments

Comments
 (0)