[otrs-cvs] FAQ/scripts/test FAQ.t,1.21,1.22
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/FAQ/scripts/test
In directory lancelot:/tmp/cvs-serv9684/scripts/test
Modified Files:
FAQ.t
Log Message:
Code cleanup.
Author: cr
Index: FAQ.t
===================================================================
RCS file: /home/cvs/FAQ/scripts/test/FAQ.t,v
retrieving revision 1.21
retrieving revision 1.22
diff -2 -u -d -r1.21 -r1.22
--- FAQ.t 12 Jan 2013 03:35:03 -0000 1.21
+++ FAQ.t 14 Jan 2013 13:14:42 -0000 1.22
@@ -763,35 +763,4 @@
);
-# clean the system
-$FAQDelete = $FAQObject->FAQDelete(
- ItemID => $FAQID,
- UserID => 1,
-);
-
-$Self->True(
- $FAQDelete,
- "FAQDelete() for ItemFieldGet: with True",
-);
-
-# check that cache is clean
-$Cache = $FAQObject->{CacheObject}->Get(
- Type => 'FAQ',
- Key => 'FAQGet::ItemID::' . $FAQID . '::ItemFields::0',
-);
-$Self->Is(
- $Cache,
- undef,
- "Cache for FAQ No ItemFields After FAQDelete(): Complete cache",
-);
-$Cache = $FAQObject->{CacheObject}->Get(
- Type => 'FAQ',
- Key => 'FAQGet::ItemID::' . $FAQID . '::ItemFields::1',
-);
-$Self->Is(
- $Cache,
- undef,
- "Cache for FAQ With ItemFields After FAQDelete(): Complete cache",
-);
-
# -------------------------
# FAQ State tests
@@ -831,3 +800,35 @@
# -------------------------
+
+# clean the system
+$FAQDelete = $FAQObject->FAQDelete(
+ ItemID => $FAQID,
+ UserID => 1,
+);
+
+$Self->True(
+ $FAQDelete,
+ "FAQDelete() for ItemFieldGet: with True",
+);
+
+# check that cache is clean
+$Cache = $FAQObject->{CacheObject}->Get(
+ Type => 'FAQ',
+ Key => 'FAQGet::ItemID::' . $FAQID . '::ItemFields::0',
+);
+$Self->Is(
+ $Cache,
+ undef,
+ "Cache for FAQ No ItemFields After FAQDelete(): Complete cache",
+);
+$Cache = $FAQObject->{CacheObject}->Get(
+ Type => 'FAQ',
+ Key => 'FAQGet::ItemID::' . $FAQID . '::ItemFields::1',
+);
+$Self->Is(
+ $Cache,
+ undef,
+ "Cache for FAQ With ItemFields After FAQDelete(): Complete cache",
+);
+
1;
---------------------------------------------------------------------
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