@@ -23,22 +23,22 @@ public function make_comments( $num, $semantic_linkbacks_type = 'like' ) {
2323
2424 public function test_facepile_markup () {
2525 $ comments = $ this ->make_comments (1 );
26- $ this ->assertEquals ( '<ul class="mention-list"><li class="single-mention h-cite">
27- <a class="u-url" title="Person 0" href="http://example.com/person0 ">
28- <span class="p-author h-card" ><img alt= \'\' src= \'http://example.com/photo \' srcset= \'http://example.com/photo 2x \' class= \'avatar avatar-64 photo avatar-default u-photo avatar-semantic-linkbacks \' height= \'64 \' width= \'64 \' />
29- <span class="hide-name p-name">Person 0</span>
30- </span>
31- </a>
32- </li></ul> ' , list_linkbacks ( array ( 'echo ' => false ), $ comments ) );
26+ $ this ->assertEquals ( '<ul class="mention-list"><li class="single-mention h-cite" id="comment-6" >
27+ <span class="p-author h-card ">
28+ <a class="u-url" title="Person 0 liked this Article on example.com." href="http://example.com/person0" ><img alt= \'\' src= \'http://example.com/photo \' srcset= \'http://example.com/photo 2x \' class= \'avatar avatar-64 photo avatar-default u-photo avatar-semantic-linkbacks \' height= \'64 \' width= \'64 \' /></a >
29+ <span class="hide-name p-name">Person 0</span>
30+ </span>
31+ <a class="u-url" href=""> </a>
32+ </li> ' , list_linkbacks ( array ( 'echo ' => false ), $ comments ) );
3333 }
3434
3535 public function test_facepile_fold () {
3636 $ comments = $ this ->make_comments (3 );
3737 $ html = list_linkbacks ( array ( 'echo ' => false ), $ comments );
38- $ person_0 = strpos ( $ html , '<a class="u-url" title="Person 0" ' );
39- $ person_1 = strpos ( $ html , '<a class="u-url" title="Person 1" ' );
38+ $ person_0 = strpos ( $ html , '<a class="u-url" title="Person 0 liked this Article on example.com. " ' );
39+ $ person_1 = strpos ( $ html , '<a class="u-url" title="Person 1 liked this Article on example.com. " ' );
4040 $ ellipsis = strpos ( $ html , '<li class="single-mention mention-ellipsis"> ' );
41- $ person_2 = strpos ( $ html , '<a class="u-url" title="Person 2" ' );
41+ $ person_2 = strpos ( $ html , '<a class="u-url" title="Person 2 liked this Article on example.com. " ' );
4242 $ this ->assertGreaterThan ( 0 , $ person_0 );
4343 $ this ->assertGreaterThan ( $ person_0 , $ person_1 );
4444 $ this ->assertGreaterThan ( $ person_1 , $ ellipsis );
@@ -49,9 +49,9 @@ public function test_facepile_no_fold() {
4949 $ comments = $ this ->make_comments (3 );
5050 update_option ( 'semantic_linkbacks_facepiles_fold_limit ' , 0 );
5151 $ html = list_linkbacks ( array ( 'echo ' => false ), $ comments );
52- $ this ->assertContains ( '<a class="u-url" title="Person 0" ' , $ html );
53- $ this ->assertContains ( '<a class="u-url" title="Person 1" ' , $ html );
54- $ this ->assertContains ( '<a class="u-url" title="Person 2" ' , $ html );
52+ $ this ->assertContains ( '<a class="u-url" title="Person 0 ' , $ html );
53+ $ this ->assertContains ( '<a class="u-url" title="Person 1 ' , $ html );
54+ $ this ->assertContains ( '<a class="u-url" title="Person 2 ' , $ html );
5555 $ this ->assertEquals ( FALSE , strpos ( '<li class="single-mention mention-ellipsis"> ' , $ html ) );
5656 }
5757}
0 commit comments