diff --git a/tests/phpunit/tests/option/wpUserSettings.php b/tests/phpunit/tests/option/wpUserSettings.php new file mode 100644 index 0000000000..44cffc730e --- /dev/null +++ b/tests/phpunit/tests/option/wpUserSettings.php @@ -0,0 +1,36 @@ +user->create() ); + + // Verify that the function's starting conditions are satisfied. + $this->assertTrue( is_admin() ); + $this->assertGreaterThan( 0, get_current_user_id() ); + + // `Cannot modify header information - headers already sent by...` from setcookie(). + $this->expectWarning(); + + wp_user_settings(); + } +}