mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-23 14:54:33 +00:00
Add unit test for tax_query against attachments.
See #22556. git-svn-id: https://develop.svn.wordpress.org/trunk@25278 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -84,9 +84,9 @@ class WP_UnitTest_Factory_For_Post extends WP_UnitTest_Factory_For_Thing {
|
||||
|
||||
class WP_UnitTest_Factory_For_Attachment extends WP_UnitTest_Factory_For_Post {
|
||||
|
||||
function create_object( $file, $parent = 0, $args = array() ) {
|
||||
return wp_insert_attachment( $args, $file, $parent );
|
||||
}
|
||||
function create_object( $file, $parent = 0, $args = array() ) {
|
||||
return wp_insert_attachment( $args, $file, $parent );
|
||||
}
|
||||
}
|
||||
|
||||
class WP_UnitTest_Factory_For_User extends WP_UnitTest_Factory_For_Thing {
|
||||
|
||||
Reference in New Issue
Block a user