Options, Meta APIs: Remove an accidental short array syntax in the tests.

See #43561


git-svn-id: https://develop.svn.wordpress.org/trunk@45065 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2019-03-28 22:02:10 +00:00
parent 8af4ca2f4c
commit 6e0e4c9cee
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class Tests_Meta_DeleteMetadata extends WP_UnitTestCase {
public function test_object_id_is_int_inside_delete_post_meta() {
$post_id = self::factory()->post->create();
$meta_id = add_metadata( 'post', $post_id, 'my_key', 'my_value' );
add_action( 'delete_post_meta', [ $this, 'action_check_object_id_is_int' ], 10, 2 );
add_action( 'delete_post_meta', array( $this, 'action_check_object_id_is_int' ), 10, 2 );
delete_metadata_by_mid( 'post', $meta_id );
}