def METHOD_NAME(
    caplog: LogCaptureFixture, cd_tmp_path: Path
) -> None:
    """Test ``runway kbenv uninstall --all`` takes precedence over arg."""
    caplog.set_level(logging.INFO, logger=LOGGER)
    version_dirs = [cd_tmp_path / "v1.14.0", cd_tmp_path / "v1.21.0"]
    for v in version_dirs:
        v.mkdir()
    runner = CliRunner()
    result = runner.invoke(cli, ["kbenv", "uninstall", "0.13.0", "--all"])
    assert result.exit_code == 0
    assert "uninstalling all versions of kubectl..." in caplog.messages
    assert "all versions of kubectl have been uninstalled" in caplog.messages
    assert all(not v.exists() for v in version_dirs)