Skip to content

Improve fixture generation #470

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

Closed
wants to merge 3 commits into from
Closed

Improve fixture generation #470

wants to merge 3 commits into from

Conversation

javiereguiluz
Copy link
Member

  • Add at least 1 tag to every blog post, to make the design more consistent
  • Don't cut out the phrases of the post summary.

@@ -91,11 +91,7 @@ public function getDependencies()

private function addRandomTags(Post $post)
{
if (0 === $count = mt_rand(0, 3)) {
Copy link
Member

Choose a reason for hiding this comment

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

this means we don't have any post without tags in the fixtures. Is it expected ? Tagging posts is optional

@stof
Copy link
Member

stof commented Feb 14, 2017

Add at least 1 tag to every blog post, to make the design more consistent

The validation of posts does not require having at least 1 tag. So if the design does not support such case, it means that there is a bug in the code, not that fixtures should be changed

@javiereguiluz
Copy link
Member Author

I've changed the fixtures again: posts can have 0 tags ... but the first post now always has 2 tags, to make the application look better.

@stof
Copy link
Member

stof commented Feb 15, 2017

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants