Make WordPress Core


Ignore:
Timestamp:
09/06/2013 02:43:49 PM (11 years ago)
Author:
wonderboymusic
Message:

Add unit test for tax_query against attachments.

See #22556.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory.php

    r25002 r25278  
    8585class WP_UnitTest_Factory_For_Attachment extends WP_UnitTest_Factory_For_Post {
    8686
    87         function create_object( $file, $parent = 0, $args = array() ) {
    88             return wp_insert_attachment( $args, $file, $parent );
    89         }
     87    function create_object( $file, $parent = 0, $args = array() ) {
     88        return wp_insert_attachment( $args, $file, $parent );
     89    }
    9090}
    9191
Note: See TracChangeset for help on using the changeset viewer.