def METHOD_NAME(self):
    opts = {
        "cachedir": os.path.join(RUNTIME_VARS.TMP, "cache"),
        "test": True,
    }
    return {
        tls: {
            "__salt__": {
                "config.option": MagicMock(return_value=self.tempdir),
                "cmd.retcode": cmd.retcode,
                "pillar.get": MagicMock(return_value=False),
                "file.replace": file.replace,
            },
            "__opts__": opts,
        },
        file: {
            "__utils__": {
                "files.is_text": files.is_text,
                "stringutils.get_diff": stringutils.get_diff,
            },
            "__opts__": opts,
        },
    }