insert macros into session config if not defined for testing
This commit is contained in:
parent
831f5a36e1
commit
734484f48e
7 changed files with 200 additions and 36 deletions
|
|
@ -16,17 +16,23 @@ use WebGUI::Test;
|
|||
use WebGUI::Macro;
|
||||
use WebGUI::Session;
|
||||
use Data::Dumper;
|
||||
use Macro_Config;
|
||||
|
||||
my $session = WebGUI::Test->session;
|
||||
|
||||
use Test::More; # increment this value for each test you create
|
||||
use Test::More;
|
||||
|
||||
my $numTests = 2;
|
||||
my $numTests = 2; # increment this value for each test you create
|
||||
|
||||
plan tests => $numTests;
|
||||
|
||||
diag("Planning on running $numTests tests\n");
|
||||
|
||||
unless ($session->config->get('macros')->{'GroupText'}) {
|
||||
diag("Inserting macro into config");
|
||||
Macro_Config::insert_macro($session, 'GroupText', 'GroupText');
|
||||
}
|
||||
|
||||
my $macroText = "^GroupText(3,local,foreigner);";
|
||||
my $output;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue