Changeset 54215 for trunk/tests/phpunit/tests/admin/wpCommentsListTable.php
- Timestamp:
- 09/19/2022 09:06:08 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/wpCommentsListTable.php
r51998 r54215 196 196 } 197 197 198 /** 199 * @ticket 42066 200 * 201 * @covers WP_Comments_List_Table::get_views 202 */ 203 public function test_get_views_should_return_views_by_default() { 204 $this->table->prepare_items(); 205 206 $expected = array( 207 'all' => '<a href="http://example.org/wp-admin/edit-comments.php?comment_status=all" class="current" aria-current="page">All <span class="count">(<span class="all-count">0</span>)</span></a>', 208 'mine' => '<a href="http://example.org/wp-admin/edit-comments.php?comment_status=mine&user_id=0">Mine <span class="count">(<span class="mine-count">0</span>)</span></a>', 209 'moderated' => '<a href="http://example.org/wp-admin/edit-comments.php?comment_status=moderated">Pending <span class="count">(<span class="pending-count">0</span>)</span></a>', 210 'approved' => '<a href="http://example.org/wp-admin/edit-comments.php?comment_status=approved">Approved <span class="count">(<span class="approved-count">0</span>)</span></a>', 211 'spam' => '<a href="http://example.org/wp-admin/edit-comments.php?comment_status=spam">Spam <span class="count">(<span class="spam-count">0</span>)</span></a>', 212 'trash' => '<a href="http://example.org/wp-admin/edit-comments.php?comment_status=trash">Trash <span class="count">(<span class="trash-count">0</span>)</span></a>', 213 ); 214 $this->assertSame( $expected, $this->table->get_views() ); 215 } 216 198 217 }
Note: See TracChangeset
for help on using the changeset viewer.