def METHOD_NAME(temp_salt_minion, caplog):
    # create faked path for cache
    with pytest.helpers.temp_directory() as temp_path:
        tmp_cachedir = Path(str(temp_path) + "/pillar_cache/")
        tmp_cachedir.mkdir(parents=True)
        assert tmp_cachedir.exists()
        tmp_cachefile = Path(str(temp_path) + "/pillar_cache/" + temp_salt_minion.id)
        tmp_cachefile.touch()
        assert tmp_cachefile.exists()
        opts = temp_salt_minion.config.copy()
        opts["pillarenv"] = None
        opts["pillar_cache"] = True
        opts["cachedir"] = str(temp_path)
        caplog.at_level(logging.DEBUG)
        pillar = salt.pillar.PillarCache(
            opts=opts,
            grains=salt.loader.grains(opts),
            minion_id=temp_salt_minion.id,
            saltenv="base",
        )
        fresh_pillar = pillar.fetch_pillar()
        assert not (
            f"Error reading cache file at '{tmp_cachefile}': Unpack failed: incomplete input"
            in caplog.messages
        )
        assert fresh_pillar == {}