Changeset 52010 for trunk/tests/phpunit/tests/option/userSettings.php
- Timestamp:
- 11/04/2021 03:22:47 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/option/userSettings.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/userSettings.php
r51568 r52010 1 1 <?php 2 /** 3 * @group 123456 4 */ 2 5 class Tests_User_Settings extends WP_UnitTestCase { 3 6 protected $user_id; 4 7 5 function set_up() {8 public function set_up() { 6 9 parent::set_up(); 7 10 … … 15 18 } 16 19 17 function tear_down() {20 public function tear_down() { 18 21 unset( $GLOBALS['_updated_user_settings'] ); 19 22 … … 21 24 } 22 25 23 function test_set_user_setting() {26 public function test_set_user_setting() { 24 27 $foo = get_user_setting( 'foo' ); 25 28 … … 31 34 } 32 35 33 function test_set_user_setting_dashes() {36 public function test_set_user_setting_dashes() { 34 37 $foo = get_user_setting( 'foo' ); 35 38 … … 41 44 } 42 45 43 function test_set_user_setting_strip_asterisks() {46 public function test_set_user_setting_strip_asterisks() { 44 47 $foo = get_user_setting( 'foo' ); 45 48 … … 52 55 53 56 // set_user_setting() bails if `headers_sent()` is true. 54 function set_user_setting( $name, $value ) {57 private function set_user_setting( $name, $value ) { 55 58 $all_user_settings = get_all_user_settings(); 56 59 $all_user_settings[ $name ] = $value;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)