PHP Class GraphQL\Tests\StarWarsQueryTest

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

Méthodes publiques

Méthode Description
testAllowsUsToQueryForLukeSkywalkerDirectlyUsingHisID ( )
testAllowsUsToQueryForTheFriendsOfFriendsOfR2D2 ( )
testAllowsUsToQueryForTheIDAndFriendsOfR2D2 ( )
testCorrectlyIdentifiesR2D2AsTheHeroOfTheStarWarsSaga ( )
testGenericQueryToGetHanSoloById ( )
testGenericQueryToGetLukeSkywalkerById ( )
testGenericQueryWithInvalidId ( )
testLukeKeyAlias ( )
testQueryUsingDuplicatedContent ( )
testTwoRootKeysAsAnAlias ( )
testUsingFragment ( )
testVerifyThatLukeIsHuman ( )
testVerifyThatR2D2IsADroid ( )

Private Methods

Méthode Description
assertValidQuery ( $query, $expected ) Helper function to test a query and the expected response.
assertValidQueryWithParams ( $query, $params, $expected ) Helper function to test a query with params and the expected response.

Method Details

testAllowsUsToQueryForLukeSkywalkerDirectlyUsingHisID() public méthode

testAllowsUsToQueryForTheFriendsOfFriendsOfR2D2() public méthode

testAllowsUsToQueryForTheIDAndFriendsOfR2D2() public méthode

testCorrectlyIdentifiesR2D2AsTheHeroOfTheStarWarsSaga() public méthode

testGenericQueryToGetHanSoloById() public méthode

testGenericQueryToGetLukeSkywalkerById() public méthode

testGenericQueryWithInvalidId() public méthode

testLukeKeyAlias() public méthode

public testLukeKeyAlias ( )

testQueryUsingDuplicatedContent() public méthode

testTwoRootKeysAsAnAlias() public méthode

testUsingFragment() public méthode

public testUsingFragment ( )

testVerifyThatLukeIsHuman() public méthode

testVerifyThatR2D2IsADroid() public méthode