Make WordPress Core


Ignore:
Timestamp:
03/15/2019 12:15:08 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Add missing access modifiers to factory classes in phpunit/includes/factory.

Props andizer.
Fixes #46504.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php

    r44785 r44903  
    1717         * @return  int|WP_Error The attachment ID on success. The value 0 or WP_Error on failure.
    1818         */
    19         function create_object( $args, $legacy_parent = 0, $legacy_args = array() ) {
     19        public function create_object( $args, $legacy_parent = 0, $legacy_args = array() ) {
    2020                // Backward compatibility for legacy argument format.
    2121                if ( is_string( $args ) ) {
     
    4545         * @return int|WP_Error The attachment ID on success. The value 0 or WP_Error on failure.
    4646         */
    47         function create_upload_object( $file, $parent = 0 ) {
     47        public function create_upload_object( $file, $parent = 0 ) {
    4848                $contents = file_get_contents( $file );
    4949                $upload   = wp_upload_bits( wp_basename( $file ), null, $contents );
Note: See TracChangeset for help on using the changeset viewer.