GraphQL\Tests\Validator\DefaultValuesOfCorrectTypeTest::testListVariablesWithInvalidItem PHP Method

testListVariablesWithInvalidItem() public method

    public function testListVariablesWithInvalidItem()
    {
        $this->expectFailsRule(new DefaultValuesOfCorrectType(), '
      query InvalidItem($a: [String] = ["one", 2]) {
        dog { name }
      }
        ', [$this->badValue('a', '[String]', '["one", 2]', 2, 40, ['In element #1: Expected type "String", found 2.'])]);
    }