Ticket #27256: 27256.diff
| File 27256.diff, 1.1 KB (added by , 13 years ago) |
|---|
-
tests/phpunit/tests/image/size.php
173 173 function test_constrain_size_for_editor_medium() { 174 174 // default max width is 500, no constraint on height 175 175 global $content_width; 176 $_content_width = $content_width; 177 176 178 $content_width = 0; 177 179 update_option('medium_size_w', 500); 178 180 update_option('medium_size_h', 0); … … 190 192 $content_width = 350; 191 193 $out = image_constrain_size_for_editor(600, 400, 'medium'); 192 194 $this->assertEquals(array(500, 333), $out); 195 $content_width = $_content_width; 193 196 } 194 197 195 198 function test_constrain_size_for_editor_full() { 196 199 global $content_width; 200 $_content_width = $content_width; 197 201 $content_width = 400; 198 202 $out = image_constrain_size_for_editor(600, 400, 'full'); 199 203 $this->assertEquals(array(600, 400), $out); … … 209 213 210 214 $out = image_constrain_size_for_editor(64, 64, 'full'); 211 215 $this->assertEquals(array(64, 64), $out); 216 $content_width = $_content_width; 212 217 } 213 218 214 219 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)