Changeset 44785 for trunk/tests/phpunit/tests/image/editor.php
- Timestamp:
- 03/01/2019 08:57:26 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/editor.php
r44577 r44785 131 131 132 132 // Test with no parameters 133 $this->assertEquals( 'canola-100x50.jpg', basename( $editor->generate_filename() ) );133 $this->assertEquals( 'canola-100x50.jpg', wp_basename( $editor->generate_filename() ) ); 134 134 135 135 // Test with a suffix only 136 $this->assertEquals( 'canola-new.jpg', basename( $editor->generate_filename( 'new' ) ) );136 $this->assertEquals( 'canola-new.jpg', wp_basename( $editor->generate_filename( 'new' ) ) ); 137 137 138 138 // Test with a destination dir only … … 140 140 141 141 // Test with a suffix only 142 $this->assertEquals( 'canola-100x50.png', basename( $editor->generate_filename( null, null, 'png' ) ) );142 $this->assertEquals( 'canola-100x50.png', wp_basename( $editor->generate_filename( null, null, 'png' ) ) ); 143 143 144 144 // Combo!
Note: See TracChangeset
for help on using the changeset viewer.