[otrs-cvs] ITSMCore/scripts/test Service.t,1.9,1.10

"CVS commits notifications of OTRS.org" <[email protected]> Thu, 13 Jun 2013 08:48:02 +0000
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/ITSMCore/scripts/test
In directory lancelot:/tmp/cvs-serv25372/scripts/test

Modified Files:
	Service.t 
Log Message:
Updated file to latest framework version.

Author: ub

Index: Service.t
===================================================================
RCS file: /home/cvs/ITSMCore/scripts/test/Service.t,v
retrieving revision 1.9
retrieving revision 1.10
diff -2 -u -d -r1.9 -r1.10
--- Service.t	21 Nov 2012 20:35:48 -0000	1.9
+++ Service.t	13 Jun 2013 08:47:57 -0000	1.10
@@ -1,5 +1,5 @@
 # --
 # Service.t - Service tests
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -1315,4 +1315,15 @@
 );
 
+$ServiceParents = $ServiceObject->ServiceParentsGet(
+    ServiceID => $ServiceGrandFatherID,
+    UserID    => 1,
+);
+
+$Self->IsDeeply(
+    $ServiceParents,
+    [],
+    "ServiceParentsListGet - for ServiceGrandFather (cached)"
+);
+
 # get the parents for father
 $ServiceParents = $ServiceObject->ServiceParentsGet(
@@ -1327,4 +1338,15 @@
 );
 
+$ServiceParents = $ServiceObject->ServiceParentsGet(
+    ServiceID => $ServiceFatherID,
+    UserID    => 1,
+);
+
+$Self->IsDeeply(
+    $ServiceParents,
+    [$ServiceGrandFatherID],
+    "ServiceParentsGet - for ServiceFather (cached)"
+);
+
 # get the parents for son
 $ServiceParents = $ServiceObject->ServiceParentsGet(
@@ -1339,4 +1361,15 @@
 );
 
+$ServiceParents = $ServiceObject->ServiceParentsGet(
+    ServiceID => $ServiceSonID,
+    UserID    => 1,
+);
+
+$Self->IsDeeply(
+    $ServiceParents,
+    [ $ServiceGrandFatherID, $ServiceFatherID ],
+    "ServiceParentsGet - for ServiceSon (cached)"
+);
+
 # set new added services to invalid
 for my $ServiceID (@AddedParentServices) {
---------------------------------------------------------------------
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