Another array syntax fix for Customizer tests.
See [31339], #30988. git-svn-id: https://develop.svn.wordpress.org/trunk@31342 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cc6ef67db7
commit
90947c2c45
@ -226,7 +226,9 @@ class Tests_WP_Customize_Setting extends WP_UnitTestCase {
|
||||
$this->assertArrayHasKey( 'foo', $base_value );
|
||||
$this->assertEquals( $this->post_data_overrides[ $name ], $base_value['foo'] );
|
||||
$this->arrayHasKey( 'bar', call_user_func( $type_options['getter'], $base_name, $this->undefined ) );
|
||||
$this->assertEquals( $base_initial_value['bar'], call_user_func( $type_options['getter'], $base_name, $this->undefined )['bar'] );
|
||||
|
||||
$getter = call_user_func( $type_options['getter'], $base_name, $this->undefined );
|
||||
$this->assertEquals( $base_initial_value['bar'], $getter['bar'] );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user