void () { myFixture.addFileToProject("source.sh", """ #!/bin/zsh source ./target.sh foo"""); myFixture.configureByText("target.sh", """ #!/bin/zsh function <caret>foo() { echo "Simple text" }"""); myFixture.renameElementAtCaret("bar"); myFixture.checkResult("source.sh", """ #!/bin/zsh source ./target.sh bar""", false); myFixture.checkResult(""" #!/bin/zsh function <caret>bar() { echo "Simple text" }"""); }