Changeset 40816 for trunk/tests/phpunit/tests/term/wpGenerateTagCloud.php
- Timestamp:
- 05/22/2017 08:23:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpGenerateTagCloud.php
r35988 r40816 120 120 ) ); 121 121 122 $this->assertRegExp( "|^<ul class='wp-tag-cloud' >|", $found );122 $this->assertRegExp( "|^<ul class='wp-tag-cloud' role='list'>|", $found ); 123 123 $this->assertRegExp( "|</ul>\n|", $found ); 124 124 $this->assertContains( '>' . $tags[0]->name . '<', $found ); … … 165 165 ) ); 166 166 167 $this->assertRegExp( "|^<ul class='wp-tag-cloud' >|", $found );167 $this->assertRegExp( "|^<ul class='wp-tag-cloud' role='list'>|", $found ); 168 168 $this->assertRegExp( "|</ul>\n|", $found ); 169 169 … … 199 199 ) ); 200 200 201 $this->assertContains( "title='Term has 1 post'", $actual[0] );202 $this->assertContains( "title='Term has 2 posts'", $actual[1] );201 $this->assertContains( 'aria-label="' . $term_objects[0]->name . ' (Term has 1 post)"', $actual[0] ); 202 $this->assertContains( 'aria-label="' . $term_objects[1]->name . ' (Term has 2 posts)"', $actual[1] ); 203 203 } 204 204 … … 224 224 ) ); 225 225 226 $this->assertContains( "title='1 foo'", $actual[0] );227 $this->assertContains( "title='2 foo'", $actual[1] );226 $this->assertContains( 'aria-label="' . $term_objects[0]->name . ' (1 foo)"', $actual[0] ); 227 $this->assertContains( 'aria-label="' . $term_objects[1]->name . ' (2 foo)"', $actual[1] ); 228 228 } 229 229
Note: See TracChangeset
for help on using the changeset viewer.