Skip to content

Commit

Permalink
Item9147: Add extra params to call_UI_FN()
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@7765 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Jun 13, 2010
1 parent 364439a commit 1b45131
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions UnitTestContrib/test/unit/HTMLValidationTests.pm
Expand Up @@ -138,15 +138,16 @@ SUB
}

sub call_UI_FN {
my ( $this, $web, $topic, $tmpl ) = @_;
my ( $this, $web, $topic, $tmpl, %params ) = @_;
my $query = Unit::Request->new(
{
webName => [$web],
topicName => [$topic],

# template => [$tmpl],
#debugenableplugins => 'TestFixturePlugin,SpreadSheetPlugin,InterwikiPlugin',
skin => $SKIN_NAME
skin => $SKIN_NAME,
%params
}
);
$query->path_info("/$web/$topic");
Expand Down Expand Up @@ -341,7 +342,7 @@ sub verify_switchboard_function {
add_attachments( $this, $this->{test_web}, $this->{test_topic} );

my ( $status, $header, $text ) =
$this->call_UI_FN( $this->{test_web}, $this->{test_topic} );
$this->call_UI_FN( $this->{test_web}, $this->{test_topic}, undef, ('Issue3' => 'c') );

$this->assert_num_equals( $expected_status{$SCRIPT_NAME} || 200, $status );
if ( $status != 302 ) {
Expand Down

0 comments on commit 1b45131

Please sign in to comment.