WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/15/2019 12:15:08 PM (3 months 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-blog.php

    r44497 r44903  
    1313class WP_UnitTest_Factory_For_Blog extends WP_UnitTest_Factory_For_Thing {
    1414
    15     function __construct( $factory = null ) {
     15    public function __construct( $factory = null ) {
    1616        global $current_site, $base;
    1717        parent::__construct( $factory );
     
    3131     * @return int|WP_Error Returns WP_Error object on failure, the site ID on success.
    3232     */
    33     function create_object( $args ) {
     33    public function create_object( $args ) {
    3434        global $wpdb;
    3535        $meta    = isset( $args['meta'] ) ? $args['meta'] : array( 'public' => 1 );
     
    5454     * @return void
    5555     */
    56     function update_object( $blog_id, $fields ) {}
     56    public function update_object( $blog_id, $fields ) {}
    5757
    5858    /**
     
    6363     * @return null|WP_Site The site object or null if not found.
    6464     */
    65     function get_object_by_id( $blog_id ) {
     65    public function get_object_by_id( $blog_id ) {
    6666        return get_site( $blog_id );
    6767    }
Note: See TracChangeset for help on using the changeset viewer.