DEV: Use topic property setter
This commit is contained in:
parent
cb4c9eeab8
commit
b1bbcb2415
|
@ -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));
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue