[otrs-cvs] otrs/scripts/test/ProcessManagement Process.t, 1.10, 1.11
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/scripts/test/ProcessManagement
In directory lancelot:/tmp/cvs-serv14207/scripts/test/ProcessManagement
Modified Files:
Process.t
Log Message:
Fixed bug#9049 - Process Management: process with a starting AD for CustomerInterface only breaks in AgentInterface.
Author: cr
Index: Process.t
===================================================================
RCS file: /home/cvs/otrs/scripts/test/ProcessManagement/Process.t,v
retrieving revision 1.10
retrieving revision 1.11
diff -2 -u -d -r1.10 -r1.11
--- Process.t 15 Jan 2013 18:36:41 -0000 1.10
+++ Process.t 15 Jan 2013 23:02:44 -0000 1.11
@@ -497,4 +497,134 @@
},
+ # List on valid Config, wrong interface
+ {
+ ProcessList => {
+ Config => {
+ 'Process' => {
+ 'P1' => {
+ Name => 'Book Orders',
+ CreateTime => '16-02-2012 13:37:00',
+ CreateBy => '1',
+ ChangeTime => '17-02-2012 13:37:00',
+ ChangeBy => '1',
+ State => 'Active',
+ StartActivity => 'A1',
+ StartActivityDialog => 'AD1',
+ Path => {
+ 'A1' => {
+ 'T1' => {
+ ActivityEntityID => 'A2',
+ },
+ 'T2' => {
+ ActivityEntityID => 'A3',
+ },
+ },
+ 'A2' => {
+ 'T3' => {
+ ActivityEntityID => 'A4',
+ },
+ },
+ },
+ },
+ },
+ 'Process::ActivityDialog' => {
+ 'AD1' => {
+ Interface => ['CustomerInterface'],
+ Name => 'Activity Dialog 1',
+ DescriptionShort => 'AD1 Process Short',
+ DescriptionLong => 'AD1 Process Long description',
+ CreateTime => '07-02-2012 13:37:00',
+ CreateBy => '2',
+ ChangeTime => '08-02-2012 13:37:00',
+ ChangeBy => '3',
+ Fields => {
+ DynamicField_Make => {
+ Display => 2,
+ DescriptionLong => 'Make Long',
+ DescriptionShort => 'Make Short',
+ },
+ },
+ FieldOrder => [
+ 'DynamicField_Make',
+ ],
+ SubmitAdviceText => 'NOTE: If you submit the form ...',
+ SubmitButtonText => 'Make an inquiry',
+ },
+ }
+ },
+ ProcessEntityID => 'P1',
+ ProcessState => ['Active'],
+ Interface => ['AgentInterface'],
+ Message => 'ProcessList() (valid Config, wrong Interface)',
+ TestType => 'Result',
+ Result => {},
+ },
+ },
+
+ # List on valid Config, right interface
+ {
+ ProcessList => {
+ Config => {
+ 'Process' => {
+ 'P1' => {
+ Name => 'Book Orders',
+ CreateTime => '16-02-2012 13:37:00',
+ CreateBy => '1',
+ ChangeTime => '17-02-2012 13:37:00',
+ ChangeBy => '1',
+ State => 'Active',
+ StartActivity => 'A1',
+ StartActivityDialog => 'AD1',
+ Path => {
+ 'A1' => {
+ 'T1' => {
+ ActivityEntityID => 'A2',
+ },
+ 'T2' => {
+ ActivityEntityID => 'A3',
+ },
+ },
+ 'A2' => {
+ 'T3' => {
+ ActivityEntityID => 'A4',
+ },
+ },
+ },
+ },
+ },
+ 'Process::ActivityDialog' => {
+ 'AD1' => {
+ Interface => ['AgentInterface'],
+ Name => 'Activity Dialog 1',
+ DescriptionShort => 'AD1 Process Short',
+ DescriptionLong => 'AD1 Process Long description',
+ CreateTime => '07-02-2012 13:37:00',
+ CreateBy => '2',
+ ChangeTime => '08-02-2012 13:37:00',
+ ChangeBy => '3',
+ Fields => {
+ DynamicField_Make => {
+ Display => 2,
+ DescriptionLong => 'Make Long',
+ DescriptionShort => 'Make Short',
+ },
+ },
+ FieldOrder => [
+ 'DynamicField_Make',
+ ],
+ SubmitAdviceText => 'NOTE: If you submit the form ...',
+ SubmitButtonText => 'Make an inquiry',
+ },
+ }
+ },
+ ProcessEntityID => 'P1',
+ ProcessState => ['Active'],
+ Interface => ['AgentInterface'],
+ Message => 'ProcessList() (valid Config, right Interface)',
+ TestType => 'Result',
+ Result => { 'P1' => 'Book Orders' },
+ },
+ },
+
# ProcessStartpointGet on invalid Config
{
@@ -1808,5 +1938,5 @@
my $ExpectedResult = $Test->{ProcessTransition}{Result};
- # ProcessList - Check given and expected result
+ # ProcessTransition - Check given and expected result
$Self->IsDeeply(
$Result,
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log