I am currently doing TDD with WordPress, in the PHPUnit I need to test if the meta box is actually registered on a method call, I could not find any function in WordPress to do that, so I was trying to verify it by calling global $wp_meta_boxes
, but it returns null
when invoked inside a PHPUnit test.
Is this variable is assigned on a hook?
Could any one provide the action/filter name?