Changeset 43571 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r42863 r43571 309 309 $file = wp_crop_image( 310 310 DIR_TESTDATA . '/images/canola.jpg', 311 0, 0, 100, 100, 100, 100 311 0, 312 0, 313 100, 314 100, 315 100, 316 100 312 317 ); 313 318 $this->assertNotWPError( $file ); … … 332 337 $file = wp_crop_image( 333 338 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg', 334 0, 0, 100, 100, 100, 100, false, 339 0, 340 0, 341 100, 342 100, 343 100, 344 100, 345 false, 335 346 DIR_TESTDATA . '/images/' . __FUNCTION__ . '.jpg' 336 347 ); … … 348 359 $file = wp_crop_image( 349 360 DIR_TESTDATA . '/images/canoladoesnotexist.jpg', 350 0, 0, 100, 100, 100, 100 361 0, 362 0, 363 100, 364 100, 365 100, 366 100 351 367 ); 352 368 $this->assertInstanceOf( 'WP_Error', $file ); … … 360 376 $file = wp_crop_image( 361 377 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg', 362 0, 0, 100, 100, 100, 100 378 0, 379 0, 380 100, 381 100, 382 100, 383 100 363 384 ); 364 385 $this->assertInstanceOf( 'WP_Error', $file ); … … 378 399 $file = wp_crop_image( 379 400 DIR_TESTDATA . '/images/canola.jpg', 380 0, 0, 100, 100, 100, 100 401 0, 402 0, 403 100, 404 100, 405 100, 406 100 381 407 ); 382 408 $this->assertInstanceOf( 'WP_Error', $file ); … … 399 425 400 426 $attachment_id = $this->factory->attachment->create_object( 401 $test_file, 0, array( 427 $test_file, 428 0, 429 array( 402 430 'post_mime_type' => 'application/pdf', 403 431 ) … … 462 490 463 491 $attachment_id = $this->factory->attachment->create_object( 464 $test_file, 0, array( 492 $test_file, 493 0, 494 array( 465 495 'post_mime_type' => 'application/pdf', 466 496 ) … … 520 550 521 551 $attachment_id = $this->factory->attachment->create_object( 522 $test_file, 0, array( 552 $test_file, 553 0, 554 array( 523 555 'post_mime_type' => 'application/pdf', 524 556 ) … … 578 610 579 611 $attachment_id = $this->factory->attachment->create_object( 580 $pdf_path, 0, array( 612 $pdf_path, 613 0, 614 array( 581 615 'post_mime_type' => 'application/pdf', 582 616 )
Note: See TracChangeset
for help on using the changeset viewer.