Changeset 51451 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 07/17/2021 10:36:52 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r51415 r51451 1655 1655 // Test to confirm all sources in the array include the same edit hash. 1656 1656 foreach ( $sizes as $size ) { 1657 $this->assert NotFalse( strpos( $size, $hash ));1657 $this->assertStringContainsString( $hash, $size ); 1658 1658 } 1659 1659 } … … 2231 2231 $this->assertFalse( wp_calculate_image_srcset( $size_array, $full_src, $image_meta ) ); 2232 2232 // Intermediate sized GIFs should not include the full size in the srcset. 2233 $this->assert False( strpos( wp_calculate_image_srcset( $size_array, $large_src, $image_meta ), $full_src) );2233 $this->assertStringNotContainsString( $full_src, wp_calculate_image_srcset( $size_array, $large_src, $image_meta ) ); 2234 2234 } 2235 2235
Note: See TracChangeset
for help on using the changeset viewer.