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
This commit is contained in:
Sergey Biryukov 2019-12-09 11:29:14 +00:00
parent 102cb95559
commit de38dfdd47
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {}