Changeset 54080 for trunk/tests/phpunit/tests/ajax/Compression.php
- Timestamp:
- 09/06/2022 11:26:45 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/Compression.php
r53561 r54080 155 155 156 156 // Check the site option is not changed due to lack of nonce. 157 $this->assertSame( 0, get_site_option( 'can_compress_scripts' ) );157 $this->assertSame( 0, (int) get_site_option( 'can_compress_scripts' ) ); 158 158 159 159 // Add a nonce. … … 168 168 169 169 // Check the site option is changed. 170 $this->assertSame( 1, get_site_option( 'can_compress_scripts' ) );170 $this->assertSame( 1, (int) get_site_option( 'can_compress_scripts' ) ); 171 171 } 172 172 … … 195 195 196 196 // Check the site option is not changed due to lack of nonce. 197 $this->assertSame( 1, get_site_option( 'can_compress_scripts' ) );197 $this->assertSame( 1, (int) get_site_option( 'can_compress_scripts' ) ); 198 198 199 199 // Add a nonce. … … 208 208 209 209 // Check the site option is changed. 210 $this->assertSame( 0, get_site_option( 'can_compress_scripts' ) );210 $this->assertSame( 0, (int) get_site_option( 'can_compress_scripts' ) ); 211 211 } 212 212
Note: See TracChangeset
for help on using the changeset viewer.