- Timestamp:
- 05/26/2019 12:11:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesCommunityEvents.php
r43356 r45424 165 165 $this->assertNotWPError( $response ); 166 166 $this->assertEqualSetsWithIndex( $this->get_user_location(), $response['location'] ); 167 $this->assertEquals( date( 'l, M j, Y', strtotime( 'next Sunday 1pm' ) ), $response['events'][0]['formatted_date'] );167 $this->assertEquals( gmdate( 'l, M j, Y', strtotime( 'next Sunday 1pm' ) ), $response['events'][0]['formatted_date'] ); 168 168 $this->assertEquals( '1:00 pm', $response['events'][0]['formatted_time'] ); 169 169 … … 186 186 $this->assertNotWPError( $cached_events ); 187 187 $this->assertEqualSetsWithIndex( $this->get_user_location(), $cached_events['location'] ); 188 $this->assertEquals( date( 'l, M j, Y', strtotime( 'next Sunday 1pm' ) ), $cached_events['events'][0]['formatted_date'] );188 $this->assertEquals( gmdate( 'l, M j, Y', strtotime( 'next Sunday 1pm' ) ), $cached_events['events'][0]['formatted_date'] ); 189 189 $this->assertEquals( '1:00 pm', $cached_events['events'][0]['formatted_time'] ); 190 190 … … 212 212 'meetup' => 'The East Bay WordPress Meetup Group', 213 213 'meetup_url' => 'https://www.meetup.com/Eastbay-WordPress-Meetup/', 214 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Sunday 1pm' ) ),214 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Sunday 1pm' ) ), 215 215 'location' => array( 216 216 'location' => 'Oakland, CA, USA', … … 226 226 'meetup' => 'WordPress Bay Area Foothills Group', 227 227 'meetup_url' => 'https://www.meetup.com/Wordpress-Bay-Area-CA-Foothills/', 228 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Wednesday 1:30pm' ) ),228 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Wednesday 1:30pm' ) ), 229 229 'location' => array( 230 230 'location' => 'Milpitas, CA, USA', … … 240 240 'meetup' => null, 241 241 'meetup_url' => null, 242 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Saturday' ) ),242 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Saturday' ) ), 243 243 'location' => array( 244 244 'location' => 'Kansas City, MO', … … 304 304 'meetup' => 'The East Bay WordPress Meetup Group', 305 305 'meetup_url' => 'https://www.meetup.com/Eastbay-WordPress-Meetup/', 306 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Monday 1pm' ) ),306 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Monday 1pm' ) ), 307 307 'location' => array( 308 308 'location' => 'Oakland, CA, USA', … … 318 318 'meetup' => 'WordPress Bay Area Foothills Group', 319 319 'meetup_url' => 'https://www.meetup.com/Wordpress-Bay-Area-CA-Foothills/', 320 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Tuesday 1:30pm' ) ),320 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Tuesday 1:30pm' ) ), 321 321 'location' => array( 322 322 'location' => 'Milpitas, CA, USA', … … 332 332 'meetup' => 'The San Jose WordPress Meetup', 333 333 'meetup_url' => 'https://www.meetup.com/sanjosewp/', 334 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Wednesday 5:30pm' ) ),334 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Wednesday 5:30pm' ) ), 335 335 'location' => array( 336 336 'location' => 'Milpitas, CA, USA', … … 346 346 'meetup' => null, 347 347 'meetup_url' => null, 348 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Thursday 9am' ) ),348 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Thursday 9am' ) ), 349 349 'location' => array( 350 350 'location' => 'San Diego, CA', … … 407 407 'meetup' => 'The East Bay WordPress Meetup Group', 408 408 'meetup_url' => 'https://www.meetup.com/Eastbay-WordPress-Meetup/', 409 'date' => date( 'Y-m-d H:i:s', strtotime( '2 days ago' ) ),409 'date' => gmdate( 'Y-m-d H:i:s', strtotime( '2 days ago' ) ), 410 410 'location' => array( 411 411 'location' => 'Oakland, CA, USA', … … 421 421 'meetup' => null, 422 422 'meetup_url' => null, 423 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Tuesday 9am' ) ),423 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Tuesday 9am' ) ), 424 424 'location' => array( 425 425 'location' => 'San Diego, CA', … … 435 435 'meetup' => 'WordPress Bay Area Foothills Group', 436 436 'meetup_url' => 'https://www.meetup.com/Wordpress-Bay-Area-CA-Foothills/', 437 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Wednesday 1:30pm' ) ),437 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Wednesday 1:30pm' ) ), 438 438 'location' => array( 439 439 'location' => 'Milpitas, CA, USA', … … 449 449 'meetup' => 'The San Jose WordPress Meetup', 450 450 'meetup_url' => 'https://www.meetup.com/sanjosewp/', 451 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Thursday 5:30pm' ) ),451 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Thursday 5:30pm' ) ), 452 452 'location' => array( 453 453 'location' => 'Milpitas, CA, USA', … … 463 463 'meetup' => null, 464 464 'meetup_url' => null, 465 'date' => date( 'Y-m-d H:i:s', strtotime( 'next Friday 9am' ) ),465 'date' => gmdate( 'Y-m-d H:i:s', strtotime( 'next Friday 9am' ) ), 466 466 'location' => array( 467 467 'location' => 'Los Angeles, CA',
Note: See TracChangeset
for help on using the changeset viewer.