Skip to content

Commit 2ba6722

Browse files
committed
fix tests
1 parent 95086f4 commit 2ba6722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test-media.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public function test_retryable_error_and_error() {
229229
public function test_duplicated_image() {
230230

231231
$content = wp_get_attachment_image( self::$sample_attachement_upper_case );
232-
$this->assertStringContainsString( "src=\"https://example.i.optimole.com/w:150/h:150/q:mauto/rt:fill/g:ce/process:". self::$sample_attachement_upper_case ."/id:579c7f7707ce87caa65fdf50c238a117/http://example.org/1PQ7p-2.jpg\" ", $content);
232+
$this->assertStringContainsString( "src=\"https://example.i.optimole.com/w:150/h:150/rt:fill/g:ce/q:mauto/process:". self::$sample_attachement_upper_case ."/id:579c7f7707ce87caa65fdf50c238a117/http://example.org/1PQ7p-2.jpg\" ", $content);
233233

234234
}
235235
public function test_page_images_process() {
@@ -333,7 +333,7 @@ public function test_special_characters_upload() : void {
333333
$special_character_attachment = self::factory()->attachment->create_upload_object( OPTML_PATH . 'tests/assets/special-characters-•⋿∀.jpg' );
334334
$content = wp_get_attachment_image( $special_character_attachment );
335335

336-
$this->assertStringContainsString( "src=\"https://example.i.optimole.com/w:150/h:150/q:mauto/rt:fill/g:ce/process:". $special_character_attachment ."/id:579c7f7707ce87caa65fdf50c238a117/http://example.org/special-characters-•⋿∀.jpg\" ", $content );
336+
$this->assertStringContainsString( "src=\"https://example.i.optimole.com/w:150/h:150/rt:fill/g:ce/q:mauto/process:". $special_character_attachment ."/id:579c7f7707ce87caa65fdf50c238a117/http://example.org/special-characters-•⋿∀.jpg\" ", $content );
337337

338338
}
339339

0 commit comments

Comments
 (0)