[otrs-cvs] ITSMCore/scripts/test Service.t,1.8,1.8.2.1

"CVS commits notifications of OTRS.org" <[email protected]> Wed, 3 Jul 2013 12:34:13 +0000
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/ITSMCore/scripts/test
In directory lancelot:/tmp/cvs-serv16537/scripts/test

Modified Files:
      Tag: rel-3_1
	Service.t 
Log Message:
Updated files to latest framework version.

Author: ub

Index: Service.t
===================================================================
RCS file: /home/cvs/ITSMCore/scripts/test/Service.t,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -2 -u -d -r1.8 -r1.8.2.1
--- Service.t	22 Oct 2012 21:23:59 -0000	1.8
+++ Service.t	3 Jul 2013 12:34:08 -0000	1.8.2.1
@@ -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