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

Fixed tests #109

Closed
wants to merge 12 commits into from
Closed

Fixed tests #109

wants to merge 12 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes functional tests in preparation of Travis activation.

@@ -26,7 +26,7 @@
{{ 'action.show'|trans }}
</a>

{% if post.isAuthor(app.user) %}
{% if app.user and post.isAuthor(app.user) %}
Copy link
Member

Choose a reason for hiding this comment

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

isn't it required to be authenticated to access the admin section ?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is not needed. I've removed it. Thanks.

@javiereguiluz
Copy link
Member Author

I've refactored some backend controllers (https://github.com/javiereguiluz/symfony-demo/commit/1cae0a24328f81980f03c7abcbdf9115f4f3f42b) to fix tests while maintaining the isAuthor() original code. Tests work again, although Travis has some problems on its own.

@bocharsky-bw
Copy link
Contributor

Great work! 👍

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.

None yet

4 participants