PHP Class GraphQL\Tests\StarWarsQueryTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: webonyx/graphql-php

Public Methods

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

Private Methods

Method 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 method

testAllowsUsToQueryForTheFriendsOfFriendsOfR2D2() public method

testAllowsUsToQueryForTheIDAndFriendsOfR2D2() public method

testCorrectlyIdentifiesR2D2AsTheHeroOfTheStarWarsSaga() public method

testGenericQueryToGetHanSoloById() public method

testGenericQueryToGetLukeSkywalkerById() public method

testGenericQueryWithInvalidId() public method

testLukeKeyAlias() public method

public testLukeKeyAlias ( )

testQueryUsingDuplicatedContent() public method

testTwoRootKeysAsAnAlias() public method

testUsingFragment() public method

public testUsingFragment ( )

testVerifyThatLukeIsHuman() public method

testVerifyThatR2D2IsADroid() public method