[otrs-cvs] otrs/scripts/test/ProcessManagement/TransitionAction TicketTitleSet.t, 1.2, 1.3

"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/TransitionAction
In directory lancelot:/tmp/cvs-serv21326/scripts/test/ProcessManagement/TransitionAction

Modified Files:
	TicketTitleSet.t 
Log Message:
Code cleanup.

Author: cr

Index: TicketTitleSet.t
===================================================================
RCS file: /home/cvs/otrs/scripts/test/ProcessManagement/TransitionAction/TicketTitleSet.t,v
retrieving revision 1.2
retrieving revision 1.3
diff -2 -u -d -r1.2 -r1.3
--- TicketTitleSet.t	14 Jan 2013 13:32:00 -0000	1.2
+++ TicketTitleSet.t	14 Jan 2013 13:50:22 -0000	1.3
@@ -228,24 +228,11 @@
             # workaround for oracle
             # oracle databases can't determine the difference between NULL and ''
-            if (
-                defined $Test->{Config}->{Config}->{$Attribute}
-                && $Test->{Config}->{Config}->{$Attribute} eq ''
-                )
-            {
-                $Self->False(
-                    $Ticket{$Attribute},
-                    "$ModuleName - Test:'$Test->{Name}' | Attribute: $Attribute for TicketID:"
-                        . " $TicketID match expected value (Special case for '' value)",
-                );
-
-            }
-            else {
-                $Self->Is(
-                    $Ticket{$Attribute},
-                    $Test->{Config}->{Config}->{$Attribute},
-                    "$ModuleName - Test:'$Test->{Name}' | Attribute: $Attribute for TicketID:"
-                        . " $TicketID match expected value",
-                );
-            }
+            # compare ticket attribute or empty string then
+            $Self->Is(
+                $Ticket{$Attribute} || '',
+                $Test->{Config}->{Config}->{$Attribute},
+                "$ModuleName - Test:'$Test->{Name}' | Attribute: $Attribute for TicketID:"
+                    . " $TicketID match expected value",
+            );
         }
     }
---------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.