"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "t/shredder/03plugin_users.t" between
rt-5.0.1.tar.gz and rt-5.0.2.tar.gz

About: RT (Request Tracker) is an issue tracking system for bug tracking, help desk ticketing, customer service, workflow processes, change management, network operations and more. See also the completive packages RTIR and Assets for RT.

03plugin_users.t  (rt-5.0.1):03plugin_users.t  (rt-5.0.2)
skipping to change at line 142 skipping to change at line 142
is($ticket->id, $tid, 'loaded ticket'); is($ticket->id, $tid, 'loaded ticket');
$transaction->Load($trid); $transaction->Load($trid);
is ( $transaction->Creator, $uidA, "ticket creator is now user A" ); is ( $transaction->Creator, $uidA, "ticket creator is now user A" );
$shredder->Wipeout( Object => $ticket ); $shredder->Wipeout( Object => $ticket );
$shredder->Wipeout( Object => $userA ); $shredder->Wipeout( Object => $userA );
} }
cmp_deeply( $test->dump_current_and_savepoint('clean'), "current DB equal to sav epoint"); cmp_deeply( $test->dump_current_and_savepoint('clean'), "current DB equal to sav epoint");
diag "Shred a user whose name contains a hyphen";
{
my $user = RT::Test->load_or_create_user( Name => 'bilbo-bargins' );
my $plugin = RT::Shredder::Plugin::Users->new;
my ( $status, $msg ) = $plugin->TestArgs( status => 'any', name => 'bilbo-ba
rgins' );
ok( $status, "plugin arguments are ok" ) or diag "error: $msg";
my $shredder = $test->shredder_new();
( $status, my $users ) = $plugin->Run;
is( $users->Count, 1, 'found one user' );
is( $users->First->Name, 'bilbo-bargins', 'found the user' );
ok( $status, "executed plugin successfully" );
$shredder->PutObjects( Objects => ['RT::User-bilbo-bargins'] );
$shredder->WipeoutAll;
}
cmp_deeply( $test->dump_current_and_savepoint('clean'), "current DB equal to sav
epoint");
done_testing(); done_testing();
 End of changes. 1 change blocks. 
0 lines changed or deleted 21 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)