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][Admin] Managing product images #15509
[API][Admin] Managing product images #15509
Conversation
GSadee
commented
Nov 8, 2023
•
edited
edited
Q | A |
---|---|
Branch? | 1.13 |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Related tickets | based on #15504 |
License | MIT |
c6fca70
to
e8dafbc
Compare
Bunnyshell Preview Environment deletedAvailable commands:
|
1ce247c
to
de35ae5
Compare
441788b
to
78b61be
Compare
src/Sylius/Behat/Context/Api/Admin/ManagingProductImagesContext.php
Outdated
Show resolved
Hide resolved
...ures/product/viewing_product_in_admin_panel/viewing_details_of_product_with_variants.feature
Show resolved
Hide resolved
...ures/product/viewing_product_in_admin_panel/viewing_details_of_product_with_variants.feature
Show resolved
Hide resolved
src/Sylius/Behat/Context/Api/Admin/ManagingProductImagesContext.php
Outdated
Show resolved
Hide resolved
src/Sylius/Behat/Context/Api/Admin/ManagingProductImagesContext.php
Outdated
Show resolved
Hide resolved
src/Sylius/Behat/Context/Api/Admin/ManagingProductImagesContext.php
Outdated
Show resolved
Hide resolved
...ylius/Bundle/CoreBundle/Validator/Constraints/ProductImageVariantsBelongToOwnerValidator.php
Outdated
Show resolved
Hide resolved
...dle/CoreBundle/spec/Validator/Constraints/ProductImageVariantsBelongToOwnerValidatorSpec.php
Outdated
Show resolved
Hide resolved
...dle/CoreBundle/spec/Validator/Constraints/ProductImageVariantsBelongToOwnerValidatorSpec.php
Show resolved
Hide resolved
e33ec2d
to
6f9a61a
Compare
…naging taxon images
6f9a61a
to
13acfa6
Compare
@@ -36,49 +38,262 @@ public function it_denies_access_to_a_product_images_list_for_not_authenticated_ | |||
/** @test */ | |||
public function it_gets_all_product_images(): void | |||
{ | |||
$this->loadFixturesFromFiles(['product/product_image.yaml', 'authentication/api_administrator.yaml']); | |||
$this->loadFixturesFromFiles(['authentication/api_administrator.yaml', 'product/product_image.yaml']); | |||
$header = array_merge($this->logInAdminUser('api@example.com'), self::CONTENT_TYPE_HEADER); |
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.
Would be cool to make use of HeadersBuilder
https://github.com/Sylius/Sylius/blob/1.13/tests/Api/Utils/HeadersBuilder.php here and in other places in this test, since it was introduces last week.
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.
👍🏻 but I would be for doing it in the separate PR
Thank you, @GSadee! |