X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-CGI-Ex;a=blobdiff_plain;f=t%2F2_fill_11_target.t;h=a1083b6d05070d74504d7b863d1b48adb51f72c1;hp=4a270deeeaa1fb8e3bbbca500ecd4ecab3544d77;hb=4eee158dce82376f2f37de29d91c53f60a24aebe;hpb=85070b46d0a93ddbeef07341421adb8389a55418 diff --git a/t/2_fill_11_target.t b/t/2_fill_11_target.t index 4a270de..a1083b6 100644 --- a/t/2_fill_11_target.t +++ b/t/2_fill_11_target.t @@ -1,10 +1,15 @@ # -*- Mode: Perl; -*- +=head1 NAME + +2_fill_11_target.t - Test CGI::Ex::Fill's ability to fill hidden fields + +=cut + use strict; -use Test; -BEGIN { plan tests => 3 } +use Test::More tests => 4; -use CGI::Ex; +use_ok('CGI::Ex::Fill'); my $form = < @@ -18,21 +23,16 @@ my $form = < EOF ; - + my %fdat = ( foo1 => 'bar1', foo2 => 'bar2', foo3 => 'bar3', ); -my $fif = new CGI::Ex; -my $output = $fif->fill( - scalarref => \$form, - fdat => \%fdat, - target => 'foo2', -); +my $output = CGI::Ex::Fill::form_fill($form, \%fdat, 'foo2'); my @v = $output =~ m/