[pLog-svn] r5903 - in plog/branches/lifetype-1.2/class/test/tests: dao summary/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Tue Sep 4 01:02:07 EDT 2007
Author: jondaley
Date: 2007-09-04 01:02:07 -0400 (Tue, 04 Sep 2007)
New Revision: 5903
Modified:
plog/branches/lifetype-1.2/class/test/tests/dao/commentscommon_test.class.php
plog/branches/lifetype-1.2/class/test/tests/summary/dao/summarystats_test.class.php
Log:
delete stuff in the right order
Modified: plog/branches/lifetype-1.2/class/test/tests/dao/commentscommon_test.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/test/tests/dao/commentscommon_test.class.php 2007-09-04 05:01:37 UTC (rev 5902)
+++ plog/branches/lifetype-1.2/class/test/tests/dao/commentscommon_test.class.php 2007-09-04 05:02:07 UTC (rev 5903)
@@ -199,7 +199,7 @@
$this->assertEquals( $origTime->getTimestamp(), $newTime->getTimestamp(), "Comment times are not the same!" );
// destroy the test data
- TestTools::deleteDaoTestData( Array( $user, $blog, $cat, $article, $comment, $comment2 ));
+ TestTools::deleteDaoTestData( Array( $comment, $comment2, $article, $cat, $blog, $user));
}
}
?>
Modified: plog/branches/lifetype-1.2/class/test/tests/summary/dao/summarystats_test.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/test/tests/summary/dao/summarystats_test.class.php 2007-09-04 05:01:37 UTC (rev 5902)
+++ plog/branches/lifetype-1.2/class/test/tests/summary/dao/summarystats_test.class.php 2007-09-04 05:02:07 UTC (rev 5903)
@@ -76,15 +76,15 @@
function tearDown()
{
- $users = new Users();
- $users->deleteUser( $this->owner->getId());
-
+ $cats = new ArticleCategories();
+ $cats->deleteCategory( $this->cat->getId(), $this->blog->getId());
+
$blogs = new Blogs();
$blogs->deleteBlog( $this->blog->getId());
- $cats = new ArticleCategories();
- $cats->deleteCategory( $this->cat->getId(), $this->blog->getId());
- }
+ $users = new Users();
+ $users->deleteUser( $this->owner->getId());
+ }
/**
* Test case for SummaryStats::getRecentArticles and mantis case 1052
More information about the pLog-svn
mailing list