/** * Test that our methods gets added in add_filters * * @since 1.0.0 * * @param null * @return null */ public function test_methods_added_via_add_filters() { $ubc_use_template_shortcode = new \UBC\Shortcode\Use_Template(); $ubc_use_template_shortcode->init(); $this->assertEquals(10, has_filter('wp_kses_allowed_html', array($ubc_use_template_shortcode, 'wp_kses_allowed_html__add_data_attributes')), 'wp_kses_allowed_html__add_data_attributes() not added to filter wp_kses_allowed_html'); $this->assertEquals(10, has_filter('safe_style_css', array($ubc_use_template_shortcode, 'safe_style_css__allow_display_none')), 'safe_style_css__allow_display_none() not added to filter safe_style_css'); }
/** * Instantiate Use_Template * * @author Richard Tape <@richardtape> * @since 1.0 * @param null * @return null */ function plugins_loaded__init_use_template() { $Use_Template = new \UBC\Shortcode\Use_Template(); $Use_Template->init(); }