[wp-trac] [WordPress Trac] #27048: Export: Allow multiple post types to be selected

WordPress Trac noreply at wordpress.org
Wed Feb 12 05:06:49 UTC 2014


#27048: Export: Allow multiple post types to be selected
----------------------------------------+-----------------------------
 Reporter:  hlashbrooke                 |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  3.9
Component:  Export                      |     Version:  3.8
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  administration
----------------------------------------+-----------------------------

Comment (by netweb):

 It looks like the tests in
 [https://core.trac.wordpress.org/browser/trunk/tests/phpunit/tests/export
 /class-wp-export-query.php /tests/phpunit/tests/export/class-wp-export-
 query.php] need to be expanded.

 Easier said than done...

 If you run `phpunit --group export` results in `Tests: 33, Assertions: 0,
 Skipped: 33.`

 ''To forcibly run the skipped tests for an open ticket, you may specify
 that ticket as a group:''

 If you run `phpunit --group 22435` results in `Tests: 39, Assertions: 0,
 Skipped: 39.`

 If I run phpunit with the `--verbose` switch various errors occur:

 `WP_Export_Query class doesn't exist`
 `wp_export function doesn't exist`
 `WP_Export_Returner class doesn't exist`
 `WP_Post_IDs_Iterator class doesn't exist`


 All the tests `class-wp-export-query.php` are attached to `@group export`
 & `@ticket 22435`

 Ticket #22435 Export API.

 Looking at r26370:
 > "When setting WP_TESTS_FORCE_KNOWN_BUGS to true, it is preferable that
 some forced tests are still skipped when they call classes or functions
 that do not exist, producing fatal errors."

 This is all pretty much getting beyond me now and mit hurts ;)

 Some extra feedback and guidance would be extremely helpful please :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27048#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list