@@ -263,28 +263,6 @@ protected function getFieldDefinition() : ArgumentSet
263263 $ type ->accept (new ValidateIntegrityVisitor ());
264264 }
265265
266- public function testEmptyOneOfInt () : void
267- {
268- $ this ->expectException (MinItemsConstraintNotSatisfied::class);
269- $ this ->expectExceptionMessage (MinItemsConstraintNotSatisfied::MESSAGE );
270-
271- $ type = new class extends InputType {
272- protected const NAME = 'ConstraintInput ' ;
273-
274- protected function getFieldDefinition () : ArgumentSet
275- {
276- return new ArgumentSet ([
277- Argument::create (
278- 'arg ' ,
279- Container::Int (),
280- )->addDirective (TestSchema::$ intConstraint , ['oneOf ' => []]),
281- ]);
282- }
283- };
284-
285- $ type ->accept (new ValidateIntegrityVisitor ());
286- }
287-
288266 public function testInvalidOneOfInt () : void
289267 {
290268 $ this ->expectException (InvalidValue::class);
@@ -306,28 +284,6 @@ protected function getFieldDefinition() : ArgumentSet
306284 $ type ->accept (new ValidateIntegrityVisitor ());
307285 }
308286
309- public function testEmptyOneOfFloat () : void
310- {
311- $ this ->expectException (MinItemsConstraintNotSatisfied::class);
312- $ this ->expectExceptionMessage (MinItemsConstraintNotSatisfied::MESSAGE );
313-
314- $ type = new class extends InputType {
315- protected const NAME = 'ConstraintInput ' ;
316-
317- protected function getFieldDefinition () : ArgumentSet
318- {
319- return new ArgumentSet ([
320- Argument::create (
321- 'arg ' ,
322- Container::Float (),
323- )->addDirective (TestSchema::$ floatConstraint , ['oneOf ' => []]),
324- ]);
325- }
326- };
327-
328- $ type ->accept (new ValidateIntegrityVisitor ());
329- }
330-
331287 public function testInvalidOneOfFloat () : void
332288 {
333289 $ this ->expectException (InvalidValue::class);
@@ -349,28 +305,6 @@ protected function getFieldDefinition() : ArgumentSet
349305 $ type ->accept (new ValidateIntegrityVisitor ());
350306 }
351307
352- public function testEmptyOneOfString () : void
353- {
354- $ this ->expectException (MinItemsConstraintNotSatisfied::class);
355- $ this ->expectExceptionMessage (MinItemsConstraintNotSatisfied::MESSAGE );
356-
357- $ type = new class extends InputType {
358- protected const NAME = 'ConstraintInput ' ;
359-
360- protected function getFieldDefinition () : ArgumentSet
361- {
362- return new ArgumentSet ([
363- Argument::create (
364- 'arg ' ,
365- Container::String (),
366- )->addDirective (TestSchema::$ stringConstraint , ['oneOf ' => []]),
367- ]);
368- }
369- };
370-
371- $ type ->accept (new ValidateIntegrityVisitor ());
372- }
373-
374308 public function testInvalidOneOfString () : void
375309 {
376310 $ this ->expectException (InvalidValue::class);
0 commit comments