Use long array syntax instead of short array syntax

This commit is contained in:
Fredrik Forsmo 2016-08-01 18:08:42 +02:00
parent 5732364bd7
commit 9d07cf59b1
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class WC_Tests_Conditional_Functions extends WC_Unit_Test_Case {
public function test_wc_site_is_https() {
$this->assertFalse( wc_site_is_https() );
add_filter( 'pre_option_home', [$this, '_https_url'] );
add_filter( 'pre_option_home', array( $this, '_https_url' ) );
$this->assertTrue( wc_site_is_https() );
}