Changeset 3827
- Timestamp:
- 06/09/09 23:39:39 (9 months ago)
- Files:
-
- 1 modified
-
branches/slapshot/t/101-email.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/slapshot/t/101-email.t
r3823 r3827 18 18 my $user = MT::Author->load(2); 19 19 20 # force email to be sent and see if it shows up in stderr 21 my $app = MT::App->instance; 22 my $cfg = $app->config; 23 $cfg->EmailAddressMain('user@example.com', 1); 24 $cfg->save_config; 25 26 20 27 my ($app_to_run, $out); 21 28 … … 23 30 $app_to_run = _run_app( 24 31 'MT::App::CMS', 25 { __test_user => $user, __mode => 'cfg_system' }32 { __test_user => $user, __mode => 'cfg_system', to_email_address => 'anotheruser@anotherexample.com' } 26 33 ); 27 34 $out = delete $app_to_run->{__test_output}; … … 30 37 ok ($out =~ /Send email to/i, "The email address where you want to send test email to label is present"); 31 38 ok ($out =~ /Send email to/i, "Send test email button is present"); 32 33 # force email to be sent and see if it shows up in stderr34 my $app = MT::App->instance;35 my $cfg = $app->config;36 $cfg->EmailAddressMain('user@example.com', 1);37 $cfg->save_config;38 39 like(grab_stderr( sub { $app_to_run = _run_app( 'MT::App::CMS', { __test_user => $user, __mode => 'cfg_system', to_email_address => 'anotheruser@anotherexample.com' }); } ),40 qr/To: anotheruser\@anotherexample.com/,41 "Email sent");
