| 1 | <?php |
||
| 15 | * |
||
| 16 | * @author Alexandr Viniychuk <[email protected]> |
||
| 17 | * created: 5/12/16 7:08 PM |
||
| 18 | */ |
||
| 19 | |||
| 20 | namespace Youshido\Tests\Library\Config; |
||
| 21 | |||
| 22 | use Youshido\GraphQL\Config\Field\FieldConfig; |
||
| 23 | use Youshido\GraphQL\Type\Scalar\StringType; |
||
| 24 | |||
| 25 | class FieldConfigTest extends \PHPUnit_Framework_TestCase |
||
| 26 | { |
||
| 27 | public function testInvalidParams(): void |
||
| 28 | { |
||
| 29 | $fieldConfig = new FieldConfig([ |
||
| 30 | 'name' => 'FirstName', |
||
| 31 | 'type' => new StringType(), |
||
| 32 | 'resolve' => static function ($value, $args = [], $type = null) { |
||
| 33 | return 'John'; |
||
| 34 | }, |
||
| 35 | ]); |
||
| 36 | |||
| 44 |