Skip to content

Added more tests for the backend #444

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

Merged
merged 1 commit into from
Jan 20, 2017
Merged

Added more tests for the backend #444

merged 1 commit into from
Jan 20, 2017

Conversation

javiereguiluz
Copy link
Member

This complements the new tests added in #434.

yield ['GET', '/en/admin/post/', Response::HTTP_OK];
yield ['GET', '/en/admin/post/1', Response::HTTP_OK];
yield ['GET', '/en/admin/post/1/edit', Response::HTTP_OK];
yield ['POST', '/en/admin/post/1/delete', Response::HTTP_FOUND];
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't this break when running tests several times (or when changing the order of tests), due to changing the state of the DB ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice catch. I've opened #445 to improve this and check if we have any other related issue. Thanks!

Copy link
Member

@yceruto yceruto Jan 20, 2017

Choose a reason for hiding this comment

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

This test no change the DB status for now, because this redirect come from here.

Copy link
Member

@yceruto yceruto Jan 20, 2017

Choose a reason for hiding this comment

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

Only we checking here the security constraint for the author.

@javiereguiluz javiereguiluz merged commit 4cfce12 into symfony:master Jan 20, 2017
javiereguiluz added a commit that referenced this pull request Jan 20, 2017
This PR was merged into the master branch.

Discussion
----------

Added more tests for the backend

This complements the new tests added in #434.

Commits
-------

4cfce12 Added more tests for the backend
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.

3 participants