Skip to content

Commit

Permalink
Copy deleted MockInlineMethodOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Dec 13, 2024
1 parent ffc5181 commit 61d59fb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/nl/hannahsten/texifyidea/refactoring/InlineFileTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import com.intellij.openapi.util.io.FileUtilRt
import com.intellij.openapi.vfs.CharsetToolkit
import com.intellij.psi.PsiFileFactory
import com.intellij.refactoring.BaseRefactoringProcessor.ConflictsInTestsException
import com.intellij.refactoring.MockInlineMethodOptions
import com.intellij.refactoring.inline.InlineOptions
import com.intellij.testFramework.LightPlatformCodeInsightTestCase
import junit.framework.TestCase
import nl.hannahsten.texifyidea.file.LatexFileType
import nl.hannahsten.texifyidea.refactoring.inlinecommand.LatexInlineCommandHandler.Util.getReference
import nl.hannahsten.texifyidea.refactoring.inlinefile.LatexInlineFileHandler.Util.canInlineLatexElement
Expand Down Expand Up @@ -127,7 +125,7 @@ class InlineFileTest : LightPlatformCodeInsightTestCase() {
private fun configure(testIndex: Int? = null): String {
@NonNls val fileName = getTestName(false) + (testIndex ?: "") + ".tex"
configureByFile(fileName)
TestCase.assertTrue(file.parent != null)
assertTrue(file.parent != null)
if (file.parent?.children?.any { it.containingFile.name == inlineFile } == false) {
val ioFile = File(testDataPath + inlineFile)
checkCaseSensitiveFS(testDataPath + inlineFile, ioFile)
Expand Down Expand Up @@ -182,4 +180,12 @@ class InlineFileTest : LightPlatformCodeInsightTestCase() {
)
processor.run()
}

open class MockInlineMethodOptions : InlineOptions {
override fun isInlineThisOnly() = false

override fun close(p0: Int) {}

override fun isPreviewUsages() = false
}
}

0 comments on commit 61d59fb

Please sign in to comment.