diff --git a/tests/test-ui.php b/tests/test-ui.php index 23688c1287ba0c2ee59133d64cf9fc714b0b4d89..3cc930512c860b080089a34665e0f486429f2c04 100755 --- a/tests/test-ui.php +++ b/tests/test-ui.php @@ -114,9 +114,9 @@ class TestUI extends WP_UnitTestCase { update_option( static::$settings_section, - [ + array( 'post' => $value, - ] + ) ); ob_start(); @@ -154,9 +154,9 @@ class TestUI extends WP_UnitTestCase { update_option( static::$settings_section, - [ + array( 'post' => $value, - ] + ) ); ob_start(); @@ -177,10 +177,7 @@ class TestUI extends WP_UnitTestCase { ); $this->assertContains( - sprintf( - $value_format, - $value - ), + $value_format, $post_field, 'Failed to assert that post field had correct value.' );