Skip to content

Commit d6feb4a

Browse files
committed
Tests: Make Customizer and text-diff data providers static.
Declare the widget control and text-diff compatibility data providers as `public static` for compatibility with newer PHPUnit versions. Preserve existing datasets and assertions. Developed in: #15177, #15178 Props rejaulalomkhan. See #66211. git-svn-id: https://develop.svn.wordpress.org/trunk@65033 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 79c06ad commit d6feb4a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/phpunit/tests/customize/widgets.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function test_customize_register_control_label_and_description( $sidebars
199199
$this->assertSame( $expected['description'], $description );
200200
}
201201

202-
public function data_customize_register_control_label_and_description() {
202+
public static function data_customize_register_control_label_and_description() {
203203
return array(
204204
'with widgets block editor' => array(
205205
'sidebars' => array(

‎tests/phpunit/tests/diff/wpTextDiffRendererTable.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function test_should_throw_deprecation_when_unset_of_dynamic_property() {
146146
*
147147
* @return array
148148
*/
149-
public function data_compat_fields() {
149+
public static function data_compat_fields() {
150150
return array(
151151
'_show_split_view' => array(
152152
'property_name' => '_show_split_view',

0 commit comments

Comments
 (0)