mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Fix phpunits
This commit is contained in:
parent
5f74dec4ee
commit
9b466a1266
3 changed files with 7 additions and 5 deletions
|
|
@ -9,3 +9,5 @@
|
|||
If you are using they on your custom entity `api_resource` configuration or serialization groups, you should check if one of these changes may affect on your app. If yes, change all occurs by this pattern:
|
||||
|
||||
- `product_review:update` changed to: `admin:product_review:update` and `shop:product_review:update`
|
||||
|
||||
1. We've removed `Sylius\Bundle\ApiBundle\ApiPlatform\Bridge\Doctrine\ORM\SubresourceDataProvider` is not longer needed because `ApiPlatform\Core\Bridge\Doctrine\Orm\SubresourceDataProvider` is the same file.
|
||||
|
|
|
|||
|
|
@ -130,12 +130,12 @@ final class RouteNameResolverTest extends TestCase
|
|||
$routeCollection->add('a_certain_subresource_route', new Route('/a/certain/item/path/{id}', [
|
||||
'_api_resource_class' => 'AppBundle\Entity\User',
|
||||
'_api_subresource_operation_name' => 'certain_other_item_op',
|
||||
'_api_subresource_context' => ['identifiers' => [[1, 'bar']]],
|
||||
'_api_subresource_context' => ['identifiers' => ['id' => ['bar', 'id']]],
|
||||
]));
|
||||
$routeCollection->add('b_certain_subresource_route', new Route('/b/certain/item/path/{id}', [
|
||||
'_api_resource_class' => 'AppBundle\Entity\User',
|
||||
'_api_subresource_operation_name' => 'certain_item_op',
|
||||
'_api_subresource_context' => ['identifiers' => [[1, 'foo']]],
|
||||
'_api_subresource_context' => ['identifiers' => ['id' => ['foo', 'id']]],
|
||||
]));
|
||||
$routeCollection->add('certain_collection_route', new Route('/certain/collection/path', [
|
||||
'_api_resource_class' => 'AppBundle\Entity\User',
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
<itemOperations>
|
||||
<itemOperation name="admin_get">
|
||||
<attribute name="method">GET</attribute>
|
||||
<attribute name="path">/admin/taxons/{id}</attribute>
|
||||
<attribute name="path">/admin/taxons/{code}</attribute>
|
||||
<attribute name="normalization_context">
|
||||
<attribute name="groups">admin:taxon:read</attribute>
|
||||
</attribute>
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
<itemOperation name="admin_put">
|
||||
<attribute name="method">PUT</attribute>
|
||||
<attribute name="path">/admin/taxons/{id}</attribute>
|
||||
<attribute name="path">/admin/taxons/{code}</attribute>
|
||||
<attribute name="denormalization_context">
|
||||
<attribute name="groups">admin:taxon:update</attribute>
|
||||
</attribute>
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
<itemOperation name="shop_get">
|
||||
<attribute name="method">GET</attribute>
|
||||
<attribute name="path">/shop/taxons/{id}</attribute>
|
||||
<attribute name="path">/shop/taxons/{code}</attribute>
|
||||
<attribute name="normalization_context">
|
||||
<attribute name="groups">shop:taxon:read</attribute>
|
||||
</attribute>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue