Skip to content

Commit 5c1e9d5

Browse files
committed
Fix tests
1 parent 3d780a4 commit 5c1e9d5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Bridge/Symfony/Bundle/Resources/config/graphql.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
<argument type="service" id="api_platform.metadata.property.name_collection_factory" />
105105
<argument type="service" id="api_platform.metadata.property.metadata_factory" />
106106
<argument type="service" id="api_platform.iri_converter" />
107+
<argument type="service" id="api_platform.identifiers_extractor.cached" />
107108
<argument type="service" id="api_platform.resource_class_resolver" />
108109
<argument type="service" id="api_platform.property_accessor" />
109110
<argument type="service" id="api_platform.name_converter" on-invalid="ignore" />

src/GraphQl/Resolver/Factory/CollectionResolverFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ public function __invoke(string $resourceClass = null, string $rootClass = null,
125125
$offset = 0 > $offset ? 0 : $offset;
126126

127127
$data = ['totalCount' => 0., 'edges' => [], 'pageInfo' => ['startCursor' => null, 'endCursor' => null, 'hasNextPage' => false, 'hasPreviousPage' => false]];
128-
129-
$data = ['totalCount' => 0.0, 'edges' => [], 'pageInfo' => ['endCursor' => null, 'hasNextPage' => false]];
130128
if ($collection instanceof PaginatorInterface && ($totalItems = $collection->getTotalItems()) > 0) {
131129
$data['totalCount'] = $totalItems;
132130
$data['pageInfo']['startCursor'] = base64_encode((string) $offset);

0 commit comments

Comments
 (0)