File tree 1 file changed +6
-18
lines changed
src/Symfony/Component/Form/Tests
1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -446,17 +446,11 @@ public function testHelpSetLinkFromWidget()
446
446
'help ' => 'Help text test! ' ,
447
447
));
448
448
$ view = $ form ->createView ();
449
-
450
- // Test if renderHelp method is implemented
451
- try {
452
- $ this ->renderHelp ($ view );
453
- }
454
- catch (SkippedTestError $ error ) {
455
- return $ error ;
456
- }
457
-
458
449
$ html = $ this ->renderRow ($ view );
459
450
451
+ // Test if renderHelp method is implemented (throw SkippedTestError if not)
452
+ $ this ->renderHelp ($ view );
453
+
460
454
$ this ->assertMatchesXpath ($ html ,
461
455
'//input
462
456
[@aria-describedby="name_help"]
@@ -468,17 +462,11 @@ public function testHelpNotSetNotLinkedFromWidget()
468
462
{
469
463
$ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' );
470
464
$ view = $ form ->createView ();
471
-
472
- // Test if renderHelp method is implemented
473
- try {
474
- $ this ->renderHelp ($ view );
475
- }
476
- catch (SkippedTestError $ error ) {
477
- return $ error ;
478
- }
479
-
480
465
$ html = $ this ->renderRow ($ view );
481
466
467
+ // Test if renderHelp method is implemented (throw SkippedTestError if not)
468
+ $ this ->renderHelp ($ view );
469
+
482
470
$ this ->assertMatchesXpath ($ html ,
483
471
'//input
484
472
[not(@aria-describedby)]
You can’t perform that action at this time.
0 commit comments