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

[API][Country] Initialize contract tests for api/v2 #12689

Merged
merged 1 commit into from Jun 8, 2021

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Jun 3, 2021

Q A
Branch? master
Bug fix? no
New feature? yes?
BC breaks? no
Deprecations? no
Related tickets
License MIT

@GSadee GSadee added the API APIs related issues and PRs. label Jun 3, 2021
@GSadee GSadee requested a review from a team as a code owner June 3, 2021 09:34
@GSadee GSadee force-pushed the api-contract-tests-countries branch from 71c8ecf to 8ec09d1 Compare June 3, 2021 10:55
use Sylius\Tests\Api\JsonApiTestCase;
use Symfony\Component\HttpFoundation\Response;

final class GetCountriesTest extends JsonApiTestCase
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering, do we want to have tests for different operations for the same resource separated between classes or functions in one class? If the latter, I would name it CountriesTest and name the function it_returns_countries_list/it_provides_countries_list or something like it 🖖

Copy link
Member

Choose a reason for hiding this comment

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

+1 for CountriesTest

@Zales0123 Zales0123 merged commit 427616f into Sylius:master Jun 8, 2021
@Zales0123
Copy link
Member

Thanks, Grzegorz! 🎉

@GSadee GSadee deleted the api-contract-tests-countries branch June 8, 2021 07:10
lchrusciel added a commit that referenced this pull request Jun 8, 2021
…payment methods endpoint (GSadee)

This PR was merged into the 1.11-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes?
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | based on #12689
| License         | MIT


Commits
-------

36eb5dd [API][PaymentMethod] Add contract test for available payment methods endpoint
01b1769 [API] Fix problem with getting command bus from container in api test case
b094954 [API] Fix CachedRouteNameResolverTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants