diff --git a/tests/lib/Stubs/Content.php b/tests/lib/Stubs/Content.php index 28edeeb..3e2d3c0 100644 --- a/tests/lib/Stubs/Content.php +++ b/tests/lib/Stubs/Content.php @@ -113,4 +113,62 @@ public function filterFieldRelationLocations( ): Pagerfanta { return new Pagerfanta(new Adapter()); } + + public function getSudoFieldRelation(string $fieldDefinitionIdentifier): ?APIContent + { + return new self(); + } + + public function getSudoFieldRelations(string $fieldDefinitionIdentifier, int $limit = 25): array + { + return []; + } + + /** + * @param array $contentTypeIdentifiers + * + * @return \Pagerfanta\Pagerfanta<\Netgen\IbexaSiteApi\API\Values\Content> + */ + public function filterSudoFieldRelations( + string $fieldDefinitionIdentifier, + array $contentTypeIdentifiers = [], + int $maxPerPage = 25, + int $currentPage = 1, + ): Pagerfanta { + return new Pagerfanta(new Adapter()); + } + + public function getSudoFieldRelationLocation(string $fieldDefinitionIdentifier): ?Location + { + return null; + } + + public function getSudoFieldRelationLocations(string $fieldDefinitionIdentifier, int $limit = 25): array + { + return []; + } + + /** + * @param array $contentTypeIdentifiers + * + * @return \Pagerfanta\Pagerfanta<\Netgen\IbexaSiteApi\API\Values\Location> + */ + public function filterSudoFieldRelationLocations( + string $fieldDefinitionIdentifier, + array $contentTypeIdentifiers = [], + int $maxPerPage = 25, + int $currentPage = 1, + ): Pagerfanta { + return new Pagerfanta(new Adapter()); + } + + public function getPath(array $parameters = []): string + { + return '/example'; + } + + public function getUrl(array $parameters = []): string + { + return 'https://netgen.io/example'; + } }