File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed
src/Symfony/Component/Form/Tests Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -446,17 +446,11 @@ public function testHelpSetLinkFromWidget()
446446 'help ' => 'Help text test! ' ,
447447 ));
448448 $ 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-
458449 $ html = $ this ->renderRow ($ view );
459450
451+ // Test if renderHelp method is implemented (throw SkippedTestError if not)
452+ $ this ->renderHelp ($ view );
453+
460454 $ this ->assertMatchesXpath ($ html ,
461455'//input
462456 [@aria-describedby="name_help"]
@@ -468,17 +462,11 @@ public function testHelpNotSetNotLinkedFromWidget()
468462 {
469463 $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' );
470464 $ 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-
480465 $ html = $ this ->renderRow ($ view );
481466
467+ // Test if renderHelp method is implemented (throw SkippedTestError if not)
468+ $ this ->renderHelp ($ view );
469+
482470 $ this ->assertMatchesXpath ($ html ,
483471'//input
484472 [not(@aria-describedby)]
You can’t perform that action at this time.
0 commit comments