From 90947c2c45a0649963a5cfbcb4b5b289c42642d8 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Thu, 5 Feb 2015 19:54:06 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/customize/setting.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/tests/customize/setting.php b/tests/phpunit/tests/customize/setting.php index fec0ca0657..a783287e20 100644 --- a/tests/phpunit/tests/customize/setting.php +++ b/tests/phpunit/tests/customize/setting.php @@ -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'] ); } }