Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
GraphQL
Tests
StartWarsValidationTest
PHP Class GraphQL\Tests\StartWarsValidationTest
Inheritance:
extends
PHPUnit_Framework_TestCase
Show file
Open project: webonyx/graphql-php
Public Methods
Method
Description
testAllowsObjectFieldsInFragments
( )
testAllowsObjectFieldsInInlineFragments
( )
testDisallowsFieldsOnScalars
( )
testDisallowsObjectFieldsOnInterfaces
( )
testRequiresFieldsOnObjects
( )
testThatNonExistentFieldsAreInvalid
( )
testValidatesAComplexButValidQuery
( )
Private Methods
Method
Description
validationErrors
(
$query
)
Helper function to test a query and the expected response.
Method Details
testAllowsObjectFieldsInFragments()
public
method
public
testAllowsObjectFieldsInFragments
( )
testAllowsObjectFieldsInInlineFragments()
public
method
public
testAllowsObjectFieldsInInlineFragments
( )
testDisallowsFieldsOnScalars()
public
method
public
testDisallowsFieldsOnScalars
( )
testDisallowsObjectFieldsOnInterfaces()
public
method
public
testDisallowsObjectFieldsOnInterfaces
( )
testRequiresFieldsOnObjects()
public
method
public
testRequiresFieldsOnObjects
( )
testThatNonExistentFieldsAreInvalid()
public
method
public
testThatNonExistentFieldsAreInvalid
( )
testValidatesAComplexButValidQuery()
public
method
public
testValidatesAComplexButValidQuery
( )