Youshido\Tests\Library\Validator\RequestValidatorTest::invalidRequestProvider PHP Method

invalidRequestProvider() public method

    public function invalidRequestProvider()
    {
        $variable1 = (new Variable('test', 'Int', false, false, new Location(1, 1)))->setUsed(true);
        $variable2 = (new Variable('test2', 'Int', false, false, new Location(1, 1)))->setUsed(true);
        $variable3 = (new Variable('test3', 'Int', false, false, new Location(1, 1)))->setUsed(false);
        return [[new Request(['queries' => [new Query('test', null, [], [new FragmentReference('reference', new Location(1, 1))], new Location(1, 1))], 'fragmentReferences' => [new FragmentReference('reference', new Location(1, 1))]])], [new Request(['queries' => [new Query('test', null, [], [new FragmentReference('reference', new Location(1, 1)), new FragmentReference('reference2', new Location(1, 1))], new Location(1, 1))], 'fragments' => [new Fragment('reference', 'TestType', [], new Location(1, 1))], 'fragmentReferences' => [new FragmentReference('reference', new Location(1, 1)), new FragmentReference('reference2', new Location(1, 1))]])], [new Request(['queries' => [new Query('test', null, [], [new FragmentReference('reference', new Location(1, 1))], new Location(1, 1))], 'fragments' => [new Fragment('reference', 'TestType', [], new Location(1, 1)), new Fragment('reference2', 'TestType', [], new Location(1, 1))], 'fragmentReferences' => [new FragmentReference('reference', new Location(1, 1))]])], [new Request(['queries' => [new Query('test', null, [new Argument('test', new VariableReference('test', null, new Location(1, 1)), new Location(1, 1))], [new Field('test', null, [], new Location(1, 1))], new Location(1, 1))], 'variableReferences' => [new VariableReference('test', null, new Location(1, 1))]])], [new Request(['queries' => [new Query('test', null, [new Argument('test', new VariableReference('test', $variable1, new Location(1, 1)), new Location(1, 1)), new Argument('test2', new VariableReference('test2', $variable2, new Location(1, 1)), new Location(1, 1))], [new Field('test', null, [], new Location(1, 1))], new Location(1, 1))], 'variables' => [$variable1, $variable2, $variable3], 'variableReferences' => [new VariableReference('test', $variable1, new Location(1, 1)), new VariableReference('test2', $variable2, new Location(1, 1))]])]];
    }