GraphQL\Tests\StarWarsIntrospectionTest::testAllowsQueryingTheSchemaForDocumentation PHP Method

testAllowsQueryingTheSchemaForDocumentation() public method

    public function testAllowsQueryingTheSchemaForDocumentation()
    {
        $query = '
        query IntrospectionDroidDescriptionQuery {
          __type(name: "Droid") {
            name
            description
          }
        }
        ';
        $expected = ['__type' => ['name' => 'Droid', 'description' => 'A mechanical creature in the Star Wars universe.']];
        $this->assertValidQuery($query, $expected);
    }