This repository was archived by the owner on Jun 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
tests/phpunit/tests/admin Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -338,8 +338,6 @@ public function data_parse_plugin_headers() {
338
338
public function test_slugs_are_correctly_sanitized_from_the_requiresplugins_header ( $ requires_plugins , $ expected ) {
339
339
$ wppd = new WP_Plugin_Dependencies ();
340
340
$ sanitize = $ this ->make_method_accessible ( $ wppd , 'sanitize_dependency_slugs ' );
341
- // $headers = array( 'test-plugin' => array( 'RequiresPlugins' => $requires_plugins ) );
342
- //$headers = array( 'test-plugin' => $requires_plugins );
343
341
$ actual = $ sanitize ->invoke ( $ wppd , $ requires_plugins );
344
342
$ this ->assertSame ( $ expected , $ actual );
345
343
}
@@ -542,7 +540,7 @@ public function data_get_dependency_filepaths() {
542
540
public function test_get_dependency_filepaths_with_unmatched_dirnames_and_dirnames_cache () {
543
541
$ wppd = new WP_Plugin_Dependencies ();
544
542
$ get_filepaths = $ this ->make_method_accessible ( $ wppd , 'get_dependency_filepaths ' );
545
- $ dependency_slugs = $ this ->make_prop_accessible ( $ wppd , 'slugs ' );
543
+ $ dependency_slugs = $ this ->make_prop_accessible ( $ wppd , 'dependency_slugs ' );
546
544
$ dependency_plugins = $ this ->make_prop_accessible ( $ wppd , 'plugins ' );
547
545
$ dependency_dirnames = $ this ->make_prop_accessible ( $ wppd , 'plugin_dirnames ' );
548
546
$ dependency_dirnames_cache = $ this ->make_prop_accessible ( $ wppd , 'plugin_dirnames_cache ' );
You can’t perform that action at this time.
0 commit comments