# vim:syntax=perl #------------------------------------------------------------------- # WebGUI is Copyright 2001-2012 Plain Black Corporation. #------------------------------------------------------------------- # Please read the legal notices (docs/legal.txt) and the license # (docs/license.txt) that came with this distribution before using # this software. #------------------------------------------------------------------ # http://www.plainblack.com info@plainblack.com #------------------------------------------------------------------ # # # use strict; use Test::More; use Test::Deep; use WebGUI::Test; #---------------------------------------------------------------------------- # Init my $session = WebGUI::Test->session; #---------------------------------------------------------------------------- # Tests plan tests => 5; # Increment this number for each test you create #---------------------------------------------------------------------------- # Test the formHeader method ok( !eval{ WebGUI::Form::formHeader( "" ); 1 }, "formHeader() dies if first parameter is not WebGUI Session", ); ok( !eval{ WebGUI::Form::formHeader( $session, ['foo'] ); 1 }, "formHeader() dies if second parameter is not hash reference", ); # Test the defaults for formHeader() my $testDefaults = all( re( q{