diff --git a/tests/phpunit/tests/theme/wpThemeGetElementClassName.php b/tests/phpunit/tests/theme/wpThemeGetElementClassName.php new file mode 100644 index 0000000000000..84537a9637bf1 --- /dev/null +++ b/tests/phpunit/tests/theme/wpThemeGetElementClassName.php @@ -0,0 +1,41 @@ +assertSame( $expected, $actual, "Class name for element '{$element}' should match expected value." ); + } + + /** + * Data provider for test_wp_theme_get_element_class_name. + * + * @return array + */ + public static function data_elements_and_class_names() { + return array( + 'button element' => array( 'button', 'wp-element-button' ), + 'caption element' => array( 'caption', 'wp-element-caption' ), + 'non-registered element' => array( 'heading', '' ), + 'empty element string' => array( '', '' ), + 'unknown custom element' => array( 'unknown_element', '' ), + ); + } +}