Revert: test framework: intention action availability must be checked

This commit is contained in:
irengrig
2016-11-15 21:39:03 +01:00
parent bb564f63f7
commit 6bf04480a5
@@ -229,9 +229,7 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
List<IntentionAction> result = new ArrayList<>();
IntentionListStep intentionListStep = new IntentionListStep(null, intentions, editor, file, file.getProject());
for (Map.Entry<IntentionAction, List<IntentionAction>> entry : intentionListStep.getActionsWithSubActions().entrySet()) {
final IntentionAction action = entry.getKey();
if (action.isAvailable(file.getProject(), editor, file))
result.add(action);
result.add(entry.getKey());
result.addAll(entry.getValue());
}