[Wp-unit-tests] [WordPress Unit Tests] #51: Port test_admin_includes_ajax_actions.php

WordPress Unit Tests noreply at wordpress.org
Sun Jul 1 11:11:50 UTC 2012


#51: Port test_admin_includes_ajax_actions.php
-----------------------+-------------------------
 Reporter:  maxcutler  |       Owner:
     Type:  task       |      Status:  new
 Priority:  normal     |   Milestone:  Port Tests
Component:  Ajax       |  Resolution:
 Keywords:  has-patch  |
-----------------------+-------------------------
Changes (by duck_):

 * keywords:   => has-patch


Comment:

 Attached [attachment:testcase-ajax.diff] to move the AJAX test base class
 to a new file named testcase-ajax.php and renamed it to
 WP_Ajax_UnitTestCase. I also put the AJAX exceptions into exceptions.php.

 In _setRole() I switched to the use of the user factory. I think this
 means that the $_POST juggling going on in there can be removed now too,
 but I haven't tested it yet.

 Not included in the patch is "svn rm wp-
 testcase/test_admin_includes_ajax_actions.php".

-- 
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/51#comment:2>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project


More information about the wp-unit-tests mailing list