protected function _createObject( $args ) {
		require_once ABSPATH . 'wp-admin/includes/upgrade.php';

		$faker = \Faker\Factory::create();
		$test_email = defined( 'WP_TESTS_EMAIL' ) ? WP_TESTS_EMAIL : $faker->email;

		$email = isset( $args['user'] )
			? get_userdata( $args['user'] )->user_email
			: $test_email;

		$network = populate_network( $args['network_id'], $args['domain'], $email, $args['title'], $args['path'], $args['subdomain_install'] );

		if ( $network && ! is_wp_error( $network ) ) {
			$this->_debug( 'Generated network ID: ' . $args['network_id'] );
		} elseif ( is_wp_error( $network ) ) {
			$this->_debug(
				'Network generation failed with message [%s] %s',
				$network->get_error_code(),
				$network->get_error_messages()
			);
		} else {
			$this->_debug( 'Network generation failed' );
		}

		return $args['network_id'];
	}
protected function _createObject( $args ) {
		require_once ABSPATH . 'wp-admin/includes/upgrade.php';

		$faker = \Faker\Factory::create();
		$test_email = defined( 'WP_TESTS_EMAIL' ) ? WP_TESTS_EMAIL : $faker->email;

		$email = isset( $args['user'] )
			? get_userdata( $args['user'] )->user_email
			: $test_email;

		$network = populate_network( $args['network_id'], $args['domain'], $email, $args['title'], $args['path'], $args['subdomain_install'] );

		if ( $network && ! is_wp_error( $network ) ) {
			$this->_debug( 'Generated network ID: ' . $args['network_id'] );
		} elseif ( is_wp_error( $network ) ) {
			$this->_debug(
				'Network generation failed with message [%s] %s',
				$network->get_error_code(),
				$network->get_error_messages()
			);
		} else {
			$this->_debug( 'Network generation failed' );
		}

		return $args['network_id'];
	}
protected function _createObject ( $ args ) { require_once ABSPATH . 'wp-admin/includes/upgrade.php' ; $ faker = \ Faker \ Factory :: create ( ) ; $ test_email = defined ( 'WP_TESTS_EMAIL' ) ? WP_TESTS_EMAIL : $ faker -> email ; $ email = isset ( $ args [ 'user' ] ) ? get_userdata ( $ args [ 'user' ] ) -> user_email : $ test_email ; $ network = populate_network ( $ args [ 'network_id' ] , $ args [ 'domain' ] , $ email , $ args [ 'title' ] , $ args [ 'path' ] , $ args [ 'subdomain_install' ] ) ; if ( $ network && ! is_wp_error ( $ network ) ) { $ this -> _debug ( 'Generated network ID: ' . $ args [ 'network_id' ] ) ; } elseif ( is_wp_error ( $ network ) ) { $ this -> _debug ( 'Network generation failed with message [%s] %s' , $ network -> get_error_code ( ) , $ network -> get_error_messages ( ) ) ; } else { $ this -> _debug ( 'Network generation failed' ) ; } return $ args [ 'network_id' ] ; }
Generates a new network.

@since 1.0.0

@access protected
@param array $args The array of arguments to use during a new object creation.
@return int The newly created network's ID.
Generates a new network .