def METHOD_NAME(monkeypatch, dummy_workflow_exporter_hook, runner, project):
    """Tests that the renku workflow export plugin hook on ``Plan`` is called."""
    pm = pluginmanager.get_plugin_manager()
    pm.register(dummy_workflow_exporter_hook)
    with monkeypatch.context() as m:
        m.setattr(pluginmanager, "get_plugin_manager", lambda: pm)
        cmd = ["echo", "test"]
        run_name = "run_1"
        result = runner.invoke(cli, ["run", "--no-output", "--name", run_name] + cmd)
        assert 0 == result.exit_code
        result = runner.invoke(cli, ["workflow", "export", "--format", "dummy", run_name])
        assert "dummy" in result.output