Make WordPress Core

Changeset 31342


Ignore:
Timestamp:
02/05/2015 07:54:06 PM (10 years ago)
Author:
boonebgorges
Message:

Another array syntax fix for Customizer tests.

See [31339], #30988.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/setting.php

    r31339 r31342  
    227227            $this->assertEquals( $this->post_data_overrides[ $name ], $base_value['foo'] );
    228228            $this->arrayHasKey( 'bar', call_user_func( $type_options['getter'], $base_name, $this->undefined ) );
    229             $this->assertEquals( $base_initial_value['bar'], call_user_func( $type_options['getter'], $base_name, $this->undefined )['bar'] );
     229
     230            $getter = call_user_func( $type_options['getter'], $base_name, $this->undefined );
     231            $this->assertEquals( $base_initial_value['bar'], $getter['bar'] );
    230232        }
    231233    }
Note: See TracChangeset for help on using the changeset viewer.