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:
parent
102cb95559
commit
de38dfdd47
@ -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 ) {}
|
||||
|
Loading…
Reference in New Issue
Block a user