phpcs
All checks were successful
All checks were successful
This commit is contained in:
parent
356a96adb6
commit
1873b940f8
2 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ final class Events_Manager extends Event_Transformer {
|
||||||
'addressCountry' => $em_location->location_country,
|
'addressCountry' => $em_location->location_country,
|
||||||
'addressLocality' => $em_location->location_town,
|
'addressLocality' => $em_location->location_town,
|
||||||
'postalAddress' => $em_location->location_address,
|
'postalAddress' => $em_location->location_address,
|
||||||
'postalCode' => $em_location->location_postcode,
|
'postalCode' => $em_location->location_postcode,
|
||||||
'name' => $em_location->location_name,
|
'name' => $em_location->location_name,
|
||||||
);
|
);
|
||||||
if ( $em_location->location_state ) {
|
if ( $em_location->location_state ) {
|
||||||
|
|
|
@ -95,7 +95,7 @@ class Test_Events_Manager extends WP_UnitTestCase {
|
||||||
$this->assertEquals( '', $event_array['content'] );
|
$this->assertEquals( '', $event_array['content'] );
|
||||||
$this->assertEquals( gmdate( 'Y-m-d', strtotime( '+10 days 15:00:00' ) ) . 'T15:00:00Z', $event_array['startTime'] );
|
$this->assertEquals( gmdate( 'Y-m-d', strtotime( '+10 days 15:00:00' ) ) . 'T15:00:00Z', $event_array['startTime'] );
|
||||||
$this->assertEquals( comments_open( $event->post_id ), $event_array['commentsEnabled'] );
|
$this->assertEquals( comments_open( $event->post_id ), $event_array['commentsEnabled'] );
|
||||||
$this->assertEquals( comments_open( $event->post_id )? 'allow_all' : 'closed', $event_array['repliesModerationOption'] );
|
$this->assertEquals( comments_open( $event->post_id ) ? 'allow_all' : 'closed', $event_array['repliesModerationOption'] );
|
||||||
$this->assertEquals( 'external', $event_array['joinMode'] );
|
$this->assertEquals( 'external', $event_array['joinMode'] );
|
||||||
$this->assertArrayNotHasKey( 'location', $event_array );
|
$this->assertArrayNotHasKey( 'location', $event_array );
|
||||||
$this->assertEquals( 'MEETING', $event_array['category'] );
|
$this->assertEquals( 'MEETING', $event_array['category'] );
|
||||||
|
|
Loading…
Reference in a new issue