Changeset 57920 for trunk/tests/phpunit/tests/customize/setting.php
- Timestamp:
- 04/03/2024 09:29:13 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/setting.php
r56536 r57920 611 611 $setting->save(); 612 612 $autoload = $wpdb->get_var( $wpdb->prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = %s", $setting->id ) ); 613 $this->assertSame( ' yes', $autoload );613 $this->assertSame( 'on', $autoload ); 614 614 $this->assertSame( $value, get_option( $name ) ); 615 615 … … 627 627 $setting->save(); 628 628 $autoload = $wpdb->get_var( $wpdb->prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = %s", $setting->id ) ); 629 $this->assertSame( ' yes', $autoload );629 $this->assertSame( 'on', $autoload ); 630 630 $this->assertSame( $value, get_option( $name ) ); 631 631 … … 643 643 $setting->save(); 644 644 $autoload = $wpdb->get_var( $wpdb->prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = %s", $setting->id ) ); 645 $this->assertSame( ' no', $autoload );645 $this->assertSame( 'off', $autoload ); 646 646 $this->assertSame( $value, get_option( $name ) ); 647 647 … … 666 666 $setting1->save(); 667 667 $autoload = $wpdb->get_var( $wpdb->prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = %s", $id_base ) ); 668 $this->assertSame( ' no', $autoload, 'Even though setting1 did not indicate autoload (thus normally true), since another multidimensional option setting of the base did say autoload=false, it should be autoload=no' );668 $this->assertSame( 'off', $autoload, 'Even though setting1 did not indicate autoload (thus normally true), since another multidimensional option setting of the base did say autoload=false, it should be autoload=no' ); 669 669 } 670 670
Note: See TracChangeset
for help on using the changeset viewer.