www_loadSurvey has to process its own macros. Fixes bug #11088.
This commit is contained in:
parent
a4c2908d03
commit
1953e71d76
3 changed files with 15 additions and 7 deletions
|
|
@ -18,18 +18,13 @@ my $session = WebGUI::Test->session;
|
|||
|
||||
#----------------------------------------------------------------------------
|
||||
# Tests
|
||||
my $tests = 46;
|
||||
plan tests => $tests + 1;
|
||||
plan tests => 47;
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# put your tests here
|
||||
|
||||
my $usedOk = use_ok('WebGUI::Asset::Wobject::Survey');
|
||||
my ($survey);
|
||||
|
||||
SKIP: {
|
||||
|
||||
skip $tests, "Unable to load Survey" unless $usedOk;
|
||||
my $user = WebGUI::User->new( $session, 'new' );
|
||||
WebGUI::Test->usersToDelete($user);
|
||||
my $import_node = WebGUI::Asset->getImportNode($session);
|
||||
|
|
@ -252,7 +247,6 @@ cmp_deeply(from_json($surveyEnd), { type => 'forward', url => '/getting_started'
|
|||
is($survey->responseJSON->nextResponseSection()->{text}, 'new text', '..wheras the original response uses the original text');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
# Test visualization
|
||||
eval 'use GraphViz';
|
||||
|
|
@ -314,3 +308,13 @@ cmp_deeply(
|
|||
],
|
||||
"Admin console submenu",
|
||||
);
|
||||
|
||||
####################################################
|
||||
#
|
||||
# www_loadSurvey
|
||||
#
|
||||
####################################################
|
||||
|
||||
my $survey_json = $survey->www_loadSurvey({});
|
||||
my $survey_data = JSON::from_json($survey_json);
|
||||
unlike($survey_data->{edithtml}, qr/\^International/, 'www_loadSurvey process macros');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue