Changeset 54147
- Timestamp:
- 09/13/2022 08:19:17 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/option.php
r54145 r54147 46 46 * @covers ::delete_option 47 47 */ 48 public function test_default_ filter() {48 public function test_default_option_filter() { 49 49 $value = 'value'; 50 50 … … 84 84 $this->assertTrue( $added ); 85 85 $this->assertSame( 'bar', get_option( 'doesnotexist' ) ); 86 } 87 88 /** 89 * @ticket 37930 90 * 91 * @covers ::get_option 92 */ 93 public function test_get_option_should_call_pre_option_filter() { 94 $filter = new MockAction(); 95 96 add_filter( 'pre_option', array( $filter, 'filter' ) ); 97 98 get_option( 'ignored' ); 99 100 $this->assertSame( 1, $filter->get_call_count() ); 86 101 } 87 102 … … 298 313 ); 299 314 } 300 301 /**302 * @ticket 37930303 *304 * @covers ::get_option305 */306 public function test_filter_pre_option_all_filter_is_called() {307 $filter = new MockAction();308 309 add_filter( 'pre_option', array( $filter, 'filter' ) );310 311 get_option( 'ignored' );312 313 $this->assertSame( 1, $filter->get_call_count() );314 }315 315 }
Note: See TracChangeset
for help on using the changeset viewer.