Changeset 27358
- Timestamp:
- 03/02/2014 10:22:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/size.php
r25409 r27358 174 174 // default max width is 500, no constraint on height 175 175 global $content_width; 176 177 $_content_width = $content_width; 178 176 179 $content_width = 0; 177 180 update_option('medium_size_w', 500); … … 191 194 $out = image_constrain_size_for_editor(600, 400, 'medium'); 192 195 $this->assertEquals(array(500, 333), $out); 196 197 $content_width = $_content_width; 193 198 } 194 199 195 200 function test_constrain_size_for_editor_full() { 196 201 global $content_width; 202 203 $_content_width = $content_width; 204 197 205 $content_width = 400; 198 206 $out = image_constrain_size_for_editor(600, 400, 'full'); … … 210 218 $out = image_constrain_size_for_editor(64, 64, 'full'); 211 219 $this->assertEquals(array(64, 64), $out); 220 221 $content_width = $_content_width; 212 222 } 213 223
Note: See TracChangeset
for help on using the changeset viewer.