diff --git a/tests/phpunit/tests/kses.php b/tests/phpunit/tests/kses.php index 5871f0fe33..7ec4a660ed 100644 --- a/tests/phpunit/tests/kses.php +++ b/tests/phpunit/tests/kses.php @@ -2090,19 +2090,13 @@ HTML; * @return array */ public function data_kses_globals_are_defined() { - return array( - 'allowedposttags' => array( - 'global' => 'allowedposttags', - ), - 'allowedtags' => array( - 'global' => 'allowedtags', - ), - 'allowedentitynames' => array( - 'global' => 'allowedentitynames', - ), - 'allowedxmlentitynames' => array( - 'global' => 'allowedxmlentitynames', - ), + $globals = array( + 'allowedposttags', + 'allowedtags', + 'allowedentitynames', + 'allowedxmlentitynames', ); + + return $this->text_array_to_dataprovider( $globals ); } }