Skip to content

Commit 26298f9

Browse files
Tests: Remove deprecated ReflectionMethod::setAccessible() calls.
1 parent 6bad32f commit 26298f9

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

tests/phpunit/tests/admin/wpPostsListTable.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ public function test_empty_trash_button_should_not_be_shown_if_there_are_no_post
316316
*/
317317
public function test_get_table_classes_returns_default_classes() {
318318
$method = new ReflectionMethod( $this->table, 'get_table_classes' );
319-
$method->setAccessible( true );
320319

321320
$classes = $method->invoke( $this->table );
322321

@@ -341,7 +340,6 @@ static function ( $classes ) {
341340
);
342341

343342
$method = new ReflectionMethod( $this->table, 'get_table_classes' );
344-
$method->setAccessible( true );
345343

346344
$classes = $method->invoke( $this->table );
347345

@@ -369,7 +367,6 @@ static function ( $classes, $post_type ) use ( &$received_post_type ) {
369367
);
370368

371369
$method = new ReflectionMethod( $this->table, 'get_table_classes' );
372-
$method->setAccessible( true );
373370
$method->invoke( $this->table );
374371

375372
remove_all_filters( 'post_list_table_classes' );

0 commit comments

Comments
 (0)