public function test_register_meta_boxes()
 {
     $post_type = rand_str();
     $post_type_object = new WP_Post_Type($post_type, array('register_meta_box_cb' => '__return_false'));
     $post_type_object->register_meta_boxes();
     $has_action = has_action("add_meta_boxes_{$post_type}", '__return_false');
     $post_type_object->unregister_meta_boxes();
     $has_action_after = has_action("add_meta_boxes_{$post_type}", '__return_false');
     $this->assertSame(10, $has_action);
     $this->assertFalse($has_action_after);
 }