Skip to content

Commit

Permalink
closer
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Sep 7, 2023
1 parent 9b00146 commit 48d4c8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/phpunit/tests/admin/wpPluginDependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ public function data_parse_plugin_headers() {
public function test_slugs_are_correctly_sanitized_from_the_requiresplugins_header( $requires_plugins, $expected ) {
$wppd = new WP_Plugin_Dependencies();
$sanitize = $this->make_method_accessible( $wppd, 'sanitize_dependency_slugs' );
// $headers = array( 'test-plugin' => array( 'RequiresPlugins' => $requires_plugins ) );
//$headers = array( 'test-plugin' => $requires_plugins );
$actual = $sanitize->invoke( $wppd, $requires_plugins );
$this->assertSame( $expected, $actual );
}
Expand Down Expand Up @@ -542,7 +540,7 @@ public function data_get_dependency_filepaths() {
public function test_get_dependency_filepaths_with_unmatched_dirnames_and_dirnames_cache() {
$wppd = new WP_Plugin_Dependencies();
$get_filepaths = $this->make_method_accessible( $wppd, 'get_dependency_filepaths' );
$dependency_slugs = $this->make_prop_accessible( $wppd, 'slugs' );
$dependency_slugs = $this->make_prop_accessible( $wppd, 'dependency_slugs' );
$dependency_plugins = $this->make_prop_accessible( $wppd, 'plugins' );
$dependency_dirnames = $this->make_prop_accessible( $wppd, 'plugin_dirnames' );
$dependency_dirnames_cache = $this->make_prop_accessible( $wppd, 'plugin_dirnames_cache' );
Expand Down

0 comments on commit 48d4c8f

Please sign in to comment.