fix events manager tests: strip tags for content
All checks were successful
All checks were successful
This commit is contained in:
parent
9d2f17583d
commit
a6938edf46
1 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ class Test_Events_Manager extends WP_UnitTestCase {
|
|||
// Check that we got the right transformer.
|
||||
$this->assertEquals( 'Event', $event_array['type'] );
|
||||
$this->assertEquals( 'Events Manager Test event', $event_array['name'] );
|
||||
$this->assertEquals( 'Event description', $event_array['content'] );
|
||||
$this->assertEquals( 'Event description', wp_strip_all_tags( $event_array['content'] ) );
|
||||
$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 ) ? 'allow_all' : 'closed', $event_array['repliesModerationOption'] );
|
||||
|
@ -131,7 +131,7 @@ class Test_Events_Manager extends WP_UnitTestCase {
|
|||
// Check that we got the right transformer.
|
||||
$this->assertEquals( 'Event', $event_array['type'] );
|
||||
$this->assertEquals( 'Events Manager Test event', $event_array['name'] );
|
||||
$this->assertEquals( 'Event description', $event_array['content'] );
|
||||
$this->assertEquals( 'Event description', wp_strip_all_tags( $event_array['content'] ) );
|
||||
$this->assertEquals( gmdate( 'Y-m-d', strtotime( '+10 days 15:00:00' ) ) . 'T15:00:00Z', $event_array['startTime'] );
|
||||
$this->assertEquals( 'external', $event_array['joinMode'] );
|
||||
$this->assertEquals( 'MEETING', $event_array['category'] );
|
||||
|
@ -174,7 +174,7 @@ class Test_Events_Manager extends WP_UnitTestCase {
|
|||
// Check that we got the right transformer.
|
||||
$this->assertEquals( 'Event', $event_array['type'] );
|
||||
$this->assertEquals( 'Events Manager Test event', $event_array['name'] );
|
||||
$this->assertEquals( 'Event description', $event_array['content'] );
|
||||
$this->assertEquals( 'Event description', wp_strip_all_tags( $event_array['content'] ) );
|
||||
$this->assertEquals( gmdate( 'Y-m-d', strtotime( '+10 days 15:00:00' ) ) . 'T15:00:00Z', $event_array['startTime'] );
|
||||
$this->assertEquals( 'external', $event_array['joinMode'] );
|
||||
$this->assertEquals( 'MEETING', $event_array['category'] );
|
||||
|
|
Loading…
Reference in a new issue