SMS coding complete, beginning testing.

Added getInboxAddresses method to User.pm, with tests.
All SMS/Email address choices are made in Mail/Send, on create
and on send, since that's when it handles groups.
Test variable addresses on creating mails.
Updated t/smtpd.pl to handle receiving and sending multiple messages.
This commit is contained in:
Colin Kuskie 2009-03-17 14:35:13 -07:00
parent bc3b204d9b
commit 7336d2d630
6 changed files with 174 additions and 51 deletions

View file

@ -33,6 +33,7 @@ my $session = start( $webguiRoot, $configFile );
installUserProfileFields($session);
installSettings($session);
upgradeMailQueue($session);
# Do your work here
finish($session);
@ -58,7 +59,7 @@ sub installUserProfileFields {
);
WebGUI::ProfileField->create(
$session,
'receiveInboxSMSNotifications',
'receiveInboxSmsNotifications',
{
label => q!WebGUI::International::get('receive inbox sms','Message_Center')!,
visible => 1,
@ -77,6 +78,11 @@ sub installSettings {
$session->setting->add('smsGateway', '');
}
sub upgradeMailQueue {
my $session = shift;
$session->db->write('alter table mailQueue add column isInbox TINYINT(4) default 0');
}
#----------------------------------------------------------------------------
sub start {
my $webguiRoot = shift;