Add mockLayoutEditor for widget editor unit test