Changeset 42343 for trunk/tests/phpunit/tests/option/updateOption.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/updateOption.php
r39564 r42343 30 30 31 31 $before = $wpdb->num_queries; 32 $value = get_option( 'test_update_option_default' );33 $after = $wpdb->num_queries;32 $value = get_option( 'test_update_option_default' ); 33 $after = $wpdb->num_queries; 34 34 35 35 $this->assertEquals( $before, $after ); … … 50 50 51 51 $before = $wpdb->num_queries; 52 $value = get_option( 'test_update_option_default' );53 $after = $wpdb->num_queries;52 $value = get_option( 'test_update_option_default' ); 53 $after = $wpdb->num_queries; 54 54 55 55 $this->assertEquals( $before, $after ); … … 70 70 71 71 $before = $wpdb->num_queries; 72 $value = get_option( 'test_update_option_default' );73 $after = $wpdb->num_queries;72 $value = get_option( 'test_update_option_default' ); 73 $after = $wpdb->num_queries; 74 74 75 75 // Database has been hit. … … 91 91 92 92 $before = $wpdb->num_queries; 93 $value = get_option( 'test_update_option_default' );94 $after = $wpdb->num_queries;93 $value = get_option( 'test_update_option_default' ); 94 $after = $wpdb->num_queries; 95 95 96 96 // Database has been hit. … … 114 114 115 115 $before = $wpdb->num_queries; 116 $value = get_option( 'foo' );116 $value = get_option( 'foo' ); 117 117 118 118 $this->assertEquals( $before, $wpdb->num_queries ); … … 135 135 136 136 $before = $wpdb->num_queries; 137 $value = get_option( 'foo' );137 $value = get_option( 'foo' ); 138 138 139 139 // 'foo' should still be autoload=yes, so we should see no additional querios. … … 159 159 160 160 $before = $wpdb->num_queries; 161 $value = get_option( 'foo' );161 $value = get_option( 'foo' ); 162 162 163 163 // 'foo' should still be autoload=yes, so we should see no additional querios.
Note: See TracChangeset
for help on using the changeset viewer.