Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit b3a272d

Browse files
author
Matthias Pfefferle
committed
fix test
1 parent cccfadb commit b3a272d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test-rendering.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ public function test_facepile_fold() {
5555
$html = list_linkbacks( array( 'echo' => false ), $comments );
5656
$person_0 = strpos( $html, '<a class="u-url" title="Person 0 liked this Article on example.com."' );
5757
$person_1 = strpos( $html, '<a class="u-url" title="Person 1 liked this Article on example.com."' );
58-
$ellipsis = strpos( $html, '<li id="mention-ellipsis-single-mention" class="single-mention mention-ellipsis">' );
59-
$person_2 = strpos( $html, '<a class="u-url" title="Person 2 liked this Article on example.com."' );
58+
$person_2 = strpos( $html, 'additional-facepile" id="' );
59+
$ellipsis = strpos( $html, '<li id="toggle-additional-facepiles" class="single-mention mention-ellipsis">' );
6060
$this->assertGreaterThan( 0, $person_0 );
6161
$this->assertGreaterThan( $person_0, $person_1 );
62-
$this->assertGreaterThan( $person_1, $ellipsis );
63-
$this->assertGreaterThan( $ellipsis, $person_2 );
62+
$this->assertGreaterThan( $person_1, $person_2 );
63+
$this->assertGreaterThan( $person_2, $ellipsis );
6464
}
6565

6666
public function test_facepile_no_fold() {
@@ -70,7 +70,7 @@ public function test_facepile_no_fold() {
7070
$this->assertContains( '<a class="u-url" title="Person 0', $html );
7171
$this->assertContains( '<a class="u-url" title="Person 1', $html );
7272
$this->assertContains( '<a class="u-url" title="Person 2', $html );
73-
$this->assertEquals( false, strpos( '<li class="single-mention mention-ellipsis">', $html ) );
73+
$this->assertEquals( false, strpos( '<li class="toggle-additional-facepiles">', $html ) );
7474
}
7575

7676
public function test_reactions() {

0 commit comments

Comments
 (0)