Make WordPress Core


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

    r42343 r44903  
    1313class WP_UnitTest_Factory_For_Network extends WP_UnitTest_Factory_For_Thing {
    1414
    15     function __construct( $factory = null ) {
     15    public function __construct( $factory = null ) {
    1616        parent::__construct( $factory );
    1717        $this->default_generation_definitions = array(
     
    2424    }
    2525
    26     function create_object( $args ) {
     26    public function create_object( $args ) {
    2727        require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    2828
     
    3737    }
    3838
    39     function update_object( $network_id, $fields ) {}
     39    public function update_object( $network_id, $fields ) {}
    4040
    41     function get_object_by_id( $network_id ) {
     41    public function get_object_by_id( $network_id ) {
    4242        return get_network( $network_id );
    4343    }
Note: See TracChangeset for help on using the changeset viewer.