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

"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-serv15633/scripts/test/ProcessManagement/TransitionAction

Modified Files:
	TicketTitleSet.t 
Log Message:
Added fix for oracle DB.

Author: cr

Index: TicketTitleSet.t
===================================================================
RCS file: /home/cvs/otrs/scripts/test/ProcessManagement/TransitionAction/TicketTitleSet.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -2 -u -d -r1.1 -r1.2
--- TicketTitleSet.t	11 Jan 2013 18:53:34 -0000	1.1
+++ TicketTitleSet.t	14 Jan 2013 13:32:00 -0000	1.2
@@ -226,10 +226,26 @@
         for my $Attribute ( sort keys %{ $Test->{Config}->{Config} } ) {
 
-            $Self->Is(
-                $Ticket{$Attribute},
-                $Test->{Config}->{Config}->{$Attribute},
-                "$ModuleName - Test:'$Test->{Name}' | Attribute: $Attribute for TicketID:"
-                    . " $TicketID match expected value",
-            );
+            # 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",
+                );
+            }
         }
     }
---------------------------------------------------------------------
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.