DEV: Use topic property setter

This commit is contained in:
Jarek Radosz 2020-11-11 15:34:20 +01:00 committed by Robin Ward
parent cb4c9eeab8
commit b1bbcb2415
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ widgetTest("topic-admin-menu-button is present for admin/moderators", {
id: 123,
});
const topic = Topic.create({ user_id: this.currentUser.id });
topic.category = Category.create({ read_restricted: true });
topic.set("category_id", Category.create({ read_restricted: true }).id);
this.siteSettings.allow_featured_topic_on_user_profiles = true;
this.set("args", createArgs(topic));
},
@ -59,7 +59,7 @@ widgetTest(
id: 123,
});
const topic = Topic.create({ user_id: this.currentUser.id });
topic.category = Category.create({ read_restricted: true });
topic.set("category_id", Category.create({ read_restricted: true }).id);
this.siteSettings.allow_featured_topic_on_user_profiles = true;
this.set("args", createArgs(topic));
},