-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
arti0090
commented
Jul 3, 2021
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
License | MIT |
<group>admin:product:read</group> | ||
<group>shop:product:read</group> |
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.
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 |
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.
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"]; |
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.
$productImage = $fixtures["product_thumbnail"]; | |
$productImage = $fixtures['product_thumbnail']; |
use Sylius\Tests\Api\JsonApiTestCase; | ||
use Symfony\Component\HttpFoundation\Response; | ||
|
||
final class ProductImageTest extends JsonApiTestCase |
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.
final class ProductImageTest extends JsonApiTestCase | |
final class ProductImagesTest extends JsonApiTestCase |
Thank you, @arti0090! 🎉 |