Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/16/2020 05:58:00 PM (4 years ago)
Author:
imath
Message:

PHP Unit tests: fix avatar filter failing test

This is a follow up of [12757] in order to take in account the lazy loading attribute when testing the avatar filter output.

See #8340

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/avatars.php

    r12606 r12760  
    167167        }
    168168
    169         $expected_html = '<img src="' . $avatar_url . '" id="' . $this->params['css_id'] . '" class="' . $this->params['class'] . ' ' . $this->params['object'] . '-' . $this->params['item_id'] . '-avatar avatar-' . $this->params['width'] . ' photo" width="' . $this->params['width'] . '" height="' . $this->params['height'] . '" alt="' . $this->params['alt'] . '" title="' . $this->params['title'] . '" ' . $this->params['extra_attr'] . ' />';
     169        $expected_html = '<img loading="lazy" src="' . $avatar_url . '" id="' . $this->params['css_id'] . '" class="' . $this->params['class'] . ' ' . $this->params['object'] . '-' . $this->params['item_id'] . '-avatar avatar-' . $this->params['width'] . ' photo" width="' . $this->params['width'] . '" height="' . $this->params['height'] . '" alt="' . $this->params['alt'] . '" title="' . $this->params['title'] . '" ' . $this->params['extra_attr'] . ' />';
    170170
    171171        $this->assertEquals( $html, $expected_html );
Note: See TracChangeset for help on using the changeset viewer.