Changeset 52010 for trunk/tests/phpunit/tests/option/option.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/option.php
r51818 r52010 6 6 class Tests_Option_Option extends WP_UnitTestCase { 7 7 8 function __return_foo() {8 public function __return_foo() { 9 9 return 'foo'; 10 10 } 11 11 12 function test_the_basics() {12 public function test_the_basics() { 13 13 $key = 'key1'; 14 14 $key2 = 'key2'; … … 35 35 } 36 36 37 function test_default_filter() {37 public function test_default_filter() { 38 38 $value = 'value'; 39 39 … … 72 72 } 73 73 74 function test_serialized_data() {74 public function test_serialized_data() { 75 75 $key = __FUNCTION__; 76 76 $value = array( … … 212 212 * @ticket 23289 213 213 */ 214 function test_special_option_name_alloption() {214 public function test_special_option_name_alloption() { 215 215 $this->expectException( 'WPDieException' ); 216 216 delete_option( 'alloptions' ); … … 220 220 * @ticket 23289 221 221 */ 222 function test_special_option_name_notoptions() {222 public function test_special_option_name_notoptions() { 223 223 $this->expectException( 'WPDieException' ); 224 224 delete_option( 'notoptions' ); 225 225 } 226 226 227 function data_option_autoloading() {227 public function data_option_autoloading() { 228 228 return array( 229 229 array( 'autoload_yes', 'yes', 'yes' ), … … 242 242 * @dataProvider data_option_autoloading 243 243 */ 244 function test_option_autoloading( $name, $autoload_value, $expected ) {244 public function test_option_autoloading( $name, $autoload_value, $expected ) { 245 245 global $wpdb; 246 246 $added = add_option( $name, 'Autoload test', '', $autoload_value );
Note: See TracChangeset
for help on using the changeset viewer.