@@ -235,7 +235,7 @@ public function test_lazy_load_preserve_image_size() {
235235 $ this ->assertNotEquals ( $ replaced_content , $ html );
236236 $ this ->assertStringNotContainsString ( 'q:eco/rt:fill/g:ce ' , $ replaced_content );
237237 $ this ->assertStringContainsString ( '/rt:fill/g:ce ' , $ replaced_content );
238- $ this ->assertStringContainsString ( '/w:96/h:96/q:eco/ig:avif /dpr:2/http://example.org/ ' , $ replaced_content );
238+ $ this ->assertStringContainsString ( '/w:96/h:96/q:eco/f:best /dpr:2/http://example.org/ ' , $ replaced_content );
239239
240240 }
241241
@@ -248,7 +248,7 @@ public function test_width_100() {
248248
249249 $ replaced_content = Optml_Manager::instance ()->replace_content ( $ content );
250250
251- $ this ->assertEquals ( '<img decoding=async data-opt-id=1786304581 data-opt-src="https://test123.i.optimole.com/w:auto/h:auto/q:mauto/ig:avif /http://example.org/wp-content/uploads/2018/11/gradient.png" height="100%" src="https://test123.i.optimole.com/w:auto/h:auto/q:eco/ig:avif /http://example.org/wp-content/uploads/2018/11/gradient.png" class="at0px" width="100%"/><noscript><img decoding=async data-opt-id=1786304581 height="100%" src="https://test123.i.optimole.com/w:auto/h:auto/q:mauto/ig:avif /http://example.org/wp-content/uploads/2018/11/gradient.png" class="at0px" width="100%"/></noscript> ' , $ replaced_content );
251+ $ this ->assertEquals ( '<img decoding=async data-opt-id=1786304581 data-opt-src="https://test123.i.optimole.com/w:auto/h:auto/q:mauto/f:best /http://example.org/wp-content/uploads/2018/11/gradient.png" height="100%" src="https://test123.i.optimole.com/w:auto/h:auto/q:eco/f:best /http://example.org/wp-content/uploads/2018/11/gradient.png" class="at0px" width="100%"/><noscript><img decoding=async data-opt-id=1786304581 height="100%" src="https://test123.i.optimole.com/w:auto/h:auto/q:mauto/f:best /http://example.org/wp-content/uploads/2018/11/gradient.png" class="at0px" width="100%"/></noscript> ' , $ replaced_content );
252252
253253 }
254254 public function test_check_with_no_script () {
@@ -542,7 +542,7 @@ public function test_generic_placeholder() {
542542
543543 public function test_dam_lazyloading () {
544544 $ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::DAM_IMG_TAG );
545- $ this ->assertStringContainsString ( 'data-opt-src="https://cloudUrlTest.test/w:100/h:200/rt:fill/g:ce/ig:avif /q:mauto/id:b1b12ee03bf3945d9d9bb963ce79cd4f/https://test-site.test/9.jpg" ' , $ replaced_content );
545+ $ this ->assertStringContainsString ( 'data-opt-src="https://cloudUrlTest.test/w:100/h:200/rt:fill/g:ce/f:best /q:mauto/id:b1b12ee03bf3945d9d9bb963ce79cd4f/https://test-site.test/9.jpg" ' , $ replaced_content );
546546 }
547547 public function test_dam_lazyloading_no_wh_attributes () {
548548 add_filter ('optml_lazyload_images_skip ' ,'__return_zero ' );
0 commit comments