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
M3: Refactor Deprecations - ApiBundle #7985 #8057
M3: Refactor Deprecations - ApiBundle #7985 #8057
Conversation
@mtshaw3 check the Travis CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtshaw3 We are building a form in Mautic\ApiBundle\Form\Type\ConfigType
.
Could you please pass fully qualified class name (FQCN) to the add
method as described here:
https://github.com/symfony/symfony/blob/3.0/UPGRADE-3.0.md#form ?
Same thing applies for Mautic\ApiBundle\Form\Type\ClientType
class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how to test this. Do you have any ideas? :)
It's not practically possible to test every api call. I'm going to test only couple of them.
Is there anything else that I have to pay attention to?
@mtshaw3 I think that's a brilliant idea of yours to test API bundle using our api library tests. |
Tried testing with the API-Library. Every endpoint is giving me a 404 error. I've ensured the API is enabled, and I'm using HTTP Basic Auth. |
Was able to get the API library tests running - will post results when they finish |
The code looks fine. |
@dongilbert Would you like to add your own review? |
PR for #7985
ApiBundle/Form/Validator/Constraints/OAuthCallbackValidator.php
ApiBundle/Form/Type/ClientType.php
ApiBundle/Form/Type/ConfigType.php