PHP Class GraphQL\Tests\Validator\QueryDepthTest

Inheritance: extends AbstractQuerySecurityTest
Afficher le fichier Open project: webonyx/graphql-php

Méthodes publiques

Méthode Description
queryDataProvider ( )
testComplexityIntrospectionQuery ( )
testFragmentQueries ( $queryDepth, integer $maxQueryDepth = 7, array $expectedErrors = [] )
testInlineFragmentQueries ( $queryDepth, integer $maxQueryDepth = 7, array $expectedErrors = [] )
testIntrospectionTypeMetaFieldQuery ( )
testSimpleQueries ( $queryDepth, integer $maxQueryDepth = 7, array $expectedErrors = [] )
testTypeNameMetaFieldQuery ( )

Méthodes protégées

Méthode Description
getErrorMessage ( $max, $count ) : string
getRule ( $maxDepth ) : QueryDepth

Private Methods

Méthode Description
buildRecursiveQuery ( $depth )
buildRecursiveQueryPart ( $depth )
buildRecursiveUsingFragmentQuery ( $depth )
buildRecursiveUsingInlineFragmentQuery ( $depth )

Method Details

getErrorMessage() protected méthode

protected getErrorMessage ( $max, $count ) : string
$max
$count
Résultat string

getRule() protected méthode

protected getRule ( $maxDepth ) : QueryDepth
$maxDepth
Résultat GraphQL\Validator\Rules\QueryDepth

queryDataProvider() public méthode

public queryDataProvider ( )

testComplexityIntrospectionQuery() public méthode

testFragmentQueries() public méthode

public testFragmentQueries ( $queryDepth, integer $maxQueryDepth = 7, array $expectedErrors = [] )
$queryDepth
$maxQueryDepth integer
$expectedErrors array

testInlineFragmentQueries() public méthode

public testInlineFragmentQueries ( $queryDepth, integer $maxQueryDepth = 7, array $expectedErrors = [] )
$queryDepth
$maxQueryDepth integer
$expectedErrors array

testIntrospectionTypeMetaFieldQuery() public méthode

testSimpleQueries() public méthode

public testSimpleQueries ( $queryDepth, integer $maxQueryDepth = 7, array $expectedErrors = [] )
$queryDepth
$maxQueryDepth integer
$expectedErrors array

testTypeNameMetaFieldQuery() public méthode