Move Macro utility module into t/lib
Break Macro.t into component tests resolve conflicts from merge prove passes on t/Macro
This commit is contained in:
parent
83d59837fd
commit
bf960218bf
9 changed files with 24 additions and 172 deletions
10
t/lib/WebGUI/Macro_Config.pm
Normal file
10
t/lib/WebGUI/Macro_Config.pm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package Macro_Config;
|
||||
|
||||
sub insert_macro {
|
||||
my ($session, $nickname, $macroName) = @_;
|
||||
my %macros = $session->config->get('macros');
|
||||
$macros{$nickname} = $macroName;
|
||||
$session->config->{_config}->set(macros => \%macros);
|
||||
}
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue