From de38dfdd47e785eb0496592d90d1d44716516163 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 9 Dec 2019 11:29:14 +0000 Subject: [PATCH] Tests: Make sure network factory returns an integer ID for created objects, for consistency with other factories and the documented value. See #48145. git-svn-id: https://develop.svn.wordpress.org/trunk@46831 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/factory/class-wp-unittest-factory-for-network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-network.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-network.php index 419957e0f9..b6d3ece393 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-network.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-network.php @@ -33,7 +33,7 @@ class WP_UnitTest_Factory_For_Network extends WP_UnitTest_Factory_For_Thing { } populate_network( $args['network_id'], $args['domain'], $email, $args['title'], $args['path'], $args['subdomain_install'] ); - return $args['network_id']; + return (int) $args['network_id']; } public function update_object( $network_id, $fields ) {}