GraphQL\Tests\Type\SchemaValidatorTest::testAcceptsSchemaWhoseQueryAndSubscriptionTypesAreObjectTypes PHP Метод

testAcceptsSchemaWhoseQueryAndSubscriptionTypesAreObjectTypes() публичный Метод

    public function testAcceptsSchemaWhoseQueryAndSubscriptionTypesAreObjectTypes()
    {
        $SubscriptionType = new ObjectType(['name' => 'Subscription', 'fields' => ['subscribe' => ['type' => Type::string()]]]);
        $this->expectPasses(['query' => $this->someObjectType, 'subscription' => $SubscriptionType]);
    }
SchemaValidatorTest