public function testDefaultFunctionPassesArgsAndContext() { $schema = $this->buildSchema(['type' => Type::int(), 'args' => ['addend1' => ['type' => Type::int()]]]); $source = new Adder(700); $result = GraphQL::execute($schema, '{ test(addend1: 80) }', $source, ['addend2' => 9]); $this->assertEquals(['data' => ['test' => 789]], $result); }