Changeset 53865 for trunk/tests/phpunit/tests/option/themeMods.php
- Timestamp:
- 08/08/2022 11:33:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/themeMods.php
r53494 r53865 6 6 class Tests_Option_ThemeMods extends WP_UnitTestCase { 7 7 8 /** 9 * @covers ::get_theme_mod 10 */ 8 11 public function test_theme_mod_default() { 9 12 $this->assertFalse( get_theme_mod( 'non_existent' ) ); 10 13 } 11 14 15 /** 16 * @covers ::get_theme_mod 17 */ 12 18 public function test_theme_mod_defined_default() { 13 19 $this->assertSame( 'default', get_theme_mod( 'non_existent', 'default' ) ); 14 20 } 15 21 22 /** 23 * @covers ::get_theme_mod 24 * @covers ::set_theme_mod 25 */ 16 26 public function test_theme_mod_set() { 17 27 $expected = 'value'; … … 22 32 /** 23 33 * @ticket 51423 34 * 35 * @covers ::set_theme_mod 24 36 */ 25 37 public function test_theme_mod_set_with_invalid_theme_mods_option() { … … 29 41 } 30 42 43 /** 44 * @covers ::get_theme_mod 45 * @covers ::set_theme_mod 46 */ 31 47 public function test_theme_mod_update() { 32 48 set_theme_mod( 'test_update', 'first_value' ); … … 36 52 } 37 53 54 /** 55 * @covers ::set_theme_mod 56 * @covers ::remove_theme_mod 57 * @covers ::get_theme_mod 58 */ 38 59 public function test_theme_mod_remove() { 39 60 set_theme_mod( 'test_remove', 'value' ); … … 46 67 * 47 68 * @dataProvider data_theme_mod_default_value_with_percent_symbols 69 * 70 * @covers ::get_theme_mod 48 71 */ 49 72 public function test_theme_mod_default_value_with_percent_symbols( $default, $expected ) {
Note: See TracChangeset
for help on using the changeset viewer.