2
# Queue.t - Queue tests
3
# Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
5
# $Id: Queue.t,v 1.3 2006/08/26 17:36:26 martin Exp $
7
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
8
# the enclosed file COPYING for license information (GPL). If you
9
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
12
use Kernel::System::Queue;
14
$Self->{QueueObject} = Kernel::System::Queue->new(%{$Self});
16
my $QueueRand = 'Some::Queue'.int(rand(1000000));
17
my $QueueID = $Self->{QueueObject}->QueueAdd(
36
my $QueueUpdate = $Self->{QueueObject}->QueueUpdate(
38
Name => $QueueRand."1",
57
my %QueueGet = $Self->{QueueObject}->QueueGet(
62
$QueueGet{Name} eq $QueueRand."1",
66
my $Queue = $Self->{QueueObject}->QueueLookup(QueueID => $QueueID);
69
$Queue eq $QueueRand."1",
70
'QueueLookup() by ID',
73
my $QueueIDLookup = $Self->{QueueObject}->QueueLookup(Queue => $Queue);
76
$QueueID eq $QueueIDLookup,
77
'QueueLookup() by Name',