DEV: adds tag to core fabricators (#28480)

This commit is contained in:
Joffrey JAFFEUX 2024-08-22 10:49:00 +02:00 committed by GitHub
parent c91dcd0447
commit 905b4f900e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -36,6 +36,16 @@ export default class CoreFabricators {
});
}
tag(args = {}) {
return this.store.createRecord("tag", {
id: args.id || incrementSequence(),
name: args.name ?? getLoadedFaker().faker.word.noun(),
description: args.description ?? getLoadedFaker().faker.lorem.sentence(),
count: args.count ?? 0,
pm_count: args.pm_count ?? 0,
});
}
topic(args = {}) {
return this.store.createRecord("topic", {
id: args.id || incrementSequence(),