Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update forum-related factories, seeder, and tests #8641

Merged
merged 37 commits into from
Oct 28, 2022

Conversation

cl8n
Copy link
Member

@cl8n cl8n commented Feb 17, 2022

was originally going to be just the factories but I couldn't help tidying up everything else I saw along the way of replacing factory usage

ForumSeeder is completely rewritten. tests are just cleaned up a little and using the new factories, but make all the same assertions as before. except I also removed ForumTopicsControllerTest::testDestroy because it doesn't do what it says it does and duplicates testReply 🤔

Copy link
Collaborator

@notbakaneko notbakaneko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conflicts 💥

database/factories/Forum/TopicFactory.php Outdated Show resolved Hide resolved
database/factories/Forum/TopicFactory.php Outdated Show resolved Hide resolved
database/seeders/ModelSeeders/ForumSeeder.php Outdated Show resolved Hide resolved
tests/Controllers/ForumPostsControllerTest.php Outdated Show resolved Hide resolved
@cl8n cl8n requested a review from notbakaneko October 21, 2022 10:02
database/factories/Forum/PollOptionFactory.php Outdated Show resolved Hide resolved
database/factories/Forum/TopicFactory.php Outdated Show resolved Hide resolved
database/factories/BeatmapsetFactory.php Outdated Show resolved Hide resolved
tests/Controllers/ForumTopicsControllerTest.php Outdated Show resolved Hide resolved
@notbakaneko notbakaneko enabled auto-merge October 28, 2022 12:38
@notbakaneko notbakaneko merged commit 6b8deb8 into ppy:master Oct 28, 2022
@cl8n cl8n deleted the forum-factory branch October 28, 2022 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants