[buddypress-trac] [BuddyPress] #5038: Unit tests do not clear DB entries when finished

buddypress-trac noreply at wordpress.org
Wed Jun 5 00:15:22 UTC 2013


#5038: Unit tests do not clear DB entries when finished
--------------------------+------------------------------
 Reporter:  r-a-y         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Unit Tests    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by boonebgorges):

 Hm, interesting. I can run `phpunit --group-groups` over and over (and
 over!) with no problem. When the tests are finished, all the BP tables are
 empty.

 From my (albeit incomplete) understanding, the reason why
 `_delete_all_posts()` is necessary is because of the WP installation
 process. It creates a Sample Page and a Hello World post. But since this
 takes place during the WP install, and not during a test, transactions
 don't help with the rollback. So it's sort of a special case that doesn't
 extend to BP data.

 So, the mystery remains. What's your rig like? Mine:
 - PHPUnit 3.7.13
 - mysql - ver 15.1 distrib 5.5.31-MariaDB
 - wp-unit-tests rev 1249

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5038#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list