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] Add Product Image type to responses #12774

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

arti0090
Copy link
Contributor

@arti0090 arti0090 commented Jul 3, 2021

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

@arti0090 arti0090 requested a review from a team as a code owner July 3, 2021 14:47
@probot-autolabeler probot-autolabeler bot added the API APIs related issues and PRs. label Jul 3, 2021
Comment on lines +17 to +18
<group>admin:product:read</group>
<group>shop:product:read</group>
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you add this serialization also on product response?

use Sylius\Tests\Api\JsonApiTestCase;
use Symfony\Component\HttpFoundation\Response;

final class ProductImageTest 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.

Suggested change
final class ProductImageTest extends JsonApiTestCase
final class ProductImagesTest extends JsonApiTestCase

{
$fixtures = $this->loadFixturesFromFiles(['product_image.yaml', 'authentication/api_administrator.yaml']);
/** @var ProductImageInterface $productImage */
$productImage = $fixtures["product_thumbnail"];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$productImage = $fixtures["product_thumbnail"];
$productImage = $fixtures['product_thumbnail'];

use Sylius\Tests\Api\JsonApiTestCase;
use Symfony\Component\HttpFoundation\Response;

final class ProductImageTest 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.

Suggested change
final class ProductImageTest extends JsonApiTestCase
final class ProductImagesTest extends JsonApiTestCase

@GSadee GSadee merged commit a93a1a7 into Sylius:master Jul 5, 2021
@GSadee
Copy link
Member

GSadee commented Jul 5, 2021

Thank you, @arti0090! 🎉

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