GraphQL\Tests\StarWarsIntrospectionTest::testAllowsQueryingTheSchemaForTypes PHP Method

testAllowsQueryingTheSchemaForTypes() public method

    public function testAllowsQueryingTheSchemaForTypes()
    {
        $query = '
        query IntrospectionTypeQuery {
          __schema {
            types {
              name
            }
          }
        }
        ';
        $expected = ['__schema' => ['types' => [['name' => 'Query'], ['name' => 'Episode'], ['name' => 'Character'], ['name' => 'String'], ['name' => 'Human'], ['name' => 'Droid'], ['name' => '__Schema'], ['name' => '__Type'], ['name' => '__TypeKind'], ['name' => 'Boolean'], ['name' => '__Field'], ['name' => '__InputValue'], ['name' => '__EnumValue'], ['name' => '__Directive'], ['name' => '__DirectiveLocation'], ['name' => 'ID'], ['name' => 'Float'], ['name' => 'Int']]]];
        $this->assertValidQuery($query, $expected);
    }