/** * Adds support for mock plugin types. */ protected function normalize_component($component) { // List of mock plugin types used in these unit tests. $faketypes = array('foolish', 'bazmeg', 'quxcat'); foreach ($faketypes as $faketype) { if (strpos($component, $faketype.'_') === 0) { return explode('_', $component, 2); } } return parent::normalize_component($component); }