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:
Boone Gorges 2015-02-05 19:54:06 +00:00
parent cc6ef67db7
commit 90947c2c45
1 changed files with 3 additions and 1 deletions

View File

@ -226,7 +226,9 @@ class Tests_WP_Customize_Setting extends WP_UnitTestCase {
$this->assertArrayHasKey( 'foo', $base_value ); $this->assertArrayHasKey( 'foo', $base_value );
$this->assertEquals( $this->post_data_overrides[ $name ], $base_value['foo'] ); $this->assertEquals( $this->post_data_overrides[ $name ], $base_value['foo'] );
$this->arrayHasKey( 'bar', call_user_func( $type_options['getter'], $base_name, $this->undefined ) ); $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'] );
} }
} }