@@ -91,17 +91,17 @@ private function make_method_accessible( $obj_or_class, $method ) {
91
91
* @covers WP_Plugin_Dependencies::__construct
92
92
*/
93
93
public function test_construct_should_set_requires_plugins_and_plugin_data_to_empty_arrays () {
94
- $ dependencies = new WP_Plugin_Dependencies ();
95
- $ requires_plugins = $ this ->make_prop_accessible ( $ dependencies , 'requires_plugins ' );
96
- $ plugin_data = $ this ->make_prop_accessible ( $ dependencies , 'plugin_data ' );
94
+ $ dependencies = new WP_Plugin_Dependencies ();
95
+ $ requires_plugins = $ this ->make_prop_accessible ( $ dependencies , 'requires_plugins ' );
96
+ $ dependency_api_data = $ this ->make_prop_accessible ( $ dependencies , 'dependency_api_data ' );
97
97
98
- $ actual_requires_plugins = $ requires_plugins ->getValue ( $ dependencies );
99
- $ actual_plugin_data = $ plugin_data ->getValue ( $ dependencies );
98
+ $ actual_requires_plugins = $ requires_plugins ->getValue ( $ dependencies );
99
+ $ actual_dependency_api_data = $ dependency_api_data ->getValue ( $ dependencies );
100
100
101
101
$ this ->assertIsArray ( $ actual_requires_plugins , '$requires_plugins is not an array. ' );
102
102
$ this ->assertEmpty ( $ actual_requires_plugins , '$requires_plugins is not empty. ' );
103
- $ this ->assertIsArray ( $ actual_plugin_data , '$plugin_data is not an array. ' );
104
- $ this ->assertEmpty ( $ actual_plugin_data , '$plugin_data is not empty. ' );
103
+ $ this ->assertIsArray ( $ actual_dependency_api_data , '$dependency_api_data is not an array. ' );
104
+ $ this ->assertEmpty ( $ actual_dependency_api_data , '$dependency_api_data is not empty. ' );
105
105
}
106
106
107
107
/**
@@ -133,7 +133,7 @@ public function test_parse_plugin_headers( $plugins_data, $expected ) {
133
133
134
134
foreach ( $ plugins_data as $ name => $ data ) {
135
135
$ plugin_data = array_map (
136
- static function ( $ value , $ header ) {
136
+ static function ( $ value , $ header ) {
137
137
return $ header . ': ' . $ value ;
138
138
},
139
139
$ data ,
@@ -164,7 +164,7 @@ static function( $value, $header ) {
164
164
$ test_plugin = basename ( self ::$ plugins_dir ) . '/ ' . $ plugin_file [0 ];
165
165
$ actual = array_filter (
166
166
$ actual ,
167
- function ( $ key ) use ( $ test_plugin ) {
167
+ function ( $ key ) use ( $ test_plugin ) {
168
168
return $ test_plugin === $ key ;
169
169
},
170
170
ARRAY_FILTER_USE_KEY
0 commit comments