Changeset 51725 for trunk/tests/phpunit/tests/admin/wpCommunityEvents.php
- Timestamp:
- 09/01/2021 10:26:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/wpCommunityEvents.php
r51641 r51725 70 70 * 71 71 * @since 4.8.0 72 * 73 * @covers WP_Community_Events::get_events 72 74 */ 73 75 public function test_get_events_bad_response_code() { … … 83 85 * 84 86 * @since 4.8.0 87 * 88 * @covers WP_Community_Events::get_cached_events 85 89 */ 86 90 public function test_get_cached_events_bad_response_code() { … … 118 122 * 119 123 * @since 4.8.0 124 * 125 * @covers WP_Community_Events::get_events 120 126 */ 121 127 public function test_get_events_invalid_response() { … … 131 137 * 132 138 * @since 4.8.0 139 * 140 * @covers WP_Community_Events::get_cached_events 133 141 */ 134 142 public function test_get_cached_events_invalid_response() { … … 166 174 * 167 175 * @since 4.8.0 176 * 177 * @covers WP_Community_Events::get_events 168 178 */ 169 179 public function test_get_events_valid_response() { … … 185 195 * 186 196 * @since 4.8.0 197 * 198 * @covers WP_Community_Events::get_cached_events 187 199 */ 188 200 public function test_get_cached_events_valid_response() { … … 288 300 * Test: `trim_events()` should immediately remove expired events. 289 301 * 302 * @since 5.5.2 303 * 290 304 * @covers WP_Community_Events::trim_events 291 *292 * @since 5.5.2293 305 */ 294 306 public function test_trim_expired_events() { … … 316 328 * Test: get_events() should return the events with the WordCamp pinned in the prepared list. 317 329 * 318 * @covers WP_Community_Events::trim_events319 *320 330 * @since 4.9.7 321 331 * @since 5.5.2 Tests `trim_events()` directly instead of indirectly via `get_events()`. 332 * 333 * @covers WP_Community_Events::trim_events 322 334 */ 323 335 public function test_trim_events_pin_wordcamp() { … … 421 433 * falls into the list. 422 434 * 423 * @covers WP_Community_Events::trim_events424 *425 435 * @since 4.9.7 426 436 * @since 5.5.2 Tests `trim_events()` directly instead of indirectly via `get_events()`. 437 * 438 * @covers WP_Community_Events::trim_events 427 439 */ 428 440 public function test_trim_events_dont_pin_multiple_wordcamps() { … … 546 558 * 547 559 * @ticket 41083 560 * 561 * @covers WP_Community_Events::get_unsafe_client_ip 548 562 */ 549 563 public function test_get_unsafe_client_ip( $raw_ip, $expected_result ) {
Note: See TracChangeset
for help on using the changeset viewer.