Skip to content

Commit

Permalink
Restore property setAccessible()
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromtonya committed Aug 16, 2023
1 parent ed4dad7 commit b2b846e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phpunit/fonts-library/wpFontFamily/__construct-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public function test_should_initialize_data() {
);
$font_family = new WP_Font_Family( $font_data );

$this->assertSame( $font_data, $property->getValue( $font_family ) );
$actual = $property->getValue( $font_family );
$property->setAccessible( false );

$this->assertSame( $font_data, $actual );
}

/**
Expand Down

0 comments on commit b2b846e

Please sign in to comment.