Skip to content

Commit 7ae769c

Browse files
committed
fix tests
1 parent 18cfb27 commit 7ae769c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/Symfony/Bundle/DependencyInjection/ApiPlatformExtensionTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use ApiPlatform\Core\DataPersister\DataPersisterInterface;
2727
use ApiPlatform\Core\DataProvider\CollectionDataProviderInterface;
2828
use ApiPlatform\Core\DataProvider\ItemDataProviderInterface;
29+
use ApiPlatform\Core\DataProvider\Pagination as LegacyPagination;
2930
use ApiPlatform\Core\DataProvider\SubresourceDataProviderInterface;
3031
use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface as LegacyPropertyMetadataFactoryInterface;
3132
use ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface as LegacyPropertyNameCollectionFactoryInterface;
@@ -1133,7 +1134,8 @@ private function getPartialContainerBuilderProphecy($configuration = null)
11331134
'api_platform.operation_path_resolver.generator',
11341135
'api_platform.operation_path_resolver.router',
11351136
'api_platform.operation_path_resolver.underscore',
1136-
'api_platform.pagination',
1137+
'api_platform.pagination.legacy',
1138+
'api_platform.pagination.next',
11371139
'api_platform.pagination_options',
11381140
'api_platform.path_segment_name_generator.dash',
11391141
'api_platform.path_segment_name_generator.underscore',
@@ -1199,6 +1201,7 @@ private function getPartialContainerBuilderProphecy($configuration = null)
11991201
'api_platform.metadata.resource.name_collection_factory' => 'api_platform.metadata.resource.name_collection_factory.xml',
12001202
'api_platform.operation_path_resolver' => 'api_platform.operation_path_resolver.router',
12011203
'api_platform.operation_path_resolver.default' => 'api_platform.operation_path_resolver.underscore',
1204+
'api_platform.pagination' => 'api_platform.pagination.next',
12021205
'api_platform.path_segment_name_generator' => 'api_platform.path_segment_name_generator.underscore',
12031206
'api_platform.property_accessor' => 'property_accessor',
12041207
'api_platform.property_info' => 'property_info',
@@ -1215,7 +1218,8 @@ private function getPartialContainerBuilderProphecy($configuration = null)
12151218
LegacyPropertyNameCollectionFactoryInterface::class => 'api_platform.metadata.property.name_collection_factory',
12161219
NotFoundAction::class => 'api_platform.action.not_found',
12171220
OperationAwareFormatsProviderInterface::class => 'api_platform.formats_provider',
1218-
Pagination::class => 'api_platform.pagination',
1221+
LegacyPagination::class => 'api_platform.pagination.legacy',
1222+
Pagination::class => 'api_platform.pagination.next',
12191223
PaginationOptions::class => 'api_platform.pagination_options',
12201224
ProcessorInterface::class => 'api_platform.state_processor',
12211225
PropertyFilter::class => 'api_platform.serializer.property_filter',

tests/Symfony/Bundle/DependencyInjection/Compiler/AnnotationFilterPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
namespace ApiPlatform\Tests\Symfony\Bundle\DependencyInjection\Compiler;
1515

16-
use ApiPlatform\Api\FilterInterface;
1716
use ApiPlatform\Core\Annotation\ApiFilter;
17+
use ApiPlatform\Core\Api\FilterInterface;
1818
use ApiPlatform\Core\Tests\ProphecyTrait;
1919
use ApiPlatform\Doctrine\Orm\Filter\DateFilter;
2020
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;

0 commit comments

Comments
 (0)