phpcs
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 43s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 1m4s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Failing after 1m6s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Failing after 58s

This commit is contained in:
André Menrath 2024-10-09 19:00:42 +02:00
parent f0a4f251ea
commit 583fd2c780

View file

@ -15,8 +15,8 @@ class Test_WP_Event_Manager extends WP_UnitTestCase {
public function set_up() { public function set_up() {
parent::set_up(); parent::set_up();
if ( ! function_exists( 'vsel_custom_post_type' ) ) { if ( ! function_exists( 'wp_event_manager_notify_new_user' ) ) {
self::markTestSkipped( 'VS Event List plugin is not active.' ); self::markTestSkipped( 'WP Event Manager plugin is not active.' );
} }
// Make sure that ActivityPub support is enabled for The Events Calendar. // Make sure that ActivityPub support is enabled for The Events Calendar.
@ -103,11 +103,11 @@ class Test_WP_Event_Manager extends WP_UnitTestCase {
// Insert a new Event. // Insert a new Event.
$wp_post_id = wp_insert_post( $wp_post_id = wp_insert_post(
array( array(
'post_title' => 'WP Event Manager TestEvent', 'post_title' => 'WP Event Manager TestEvent',
'post_status' => 'published', 'post_status' => 'published',
'post_type' => 'event_listing', 'post_type' => 'event_listing',
'post_content' => 'Come to my WP Event Manager event!', 'post_content' => 'Come to my WP Event Manager event!',
'meta_input' => array( 'meta_input' => array(
'event-start-date' => \gmdate( 'Y-m-d H:i:s', strtotime( '+10 days 15:00:00' ) ), 'event-start-date' => \gmdate( 'Y-m-d H:i:s', strtotime( '+10 days 15:00:00' ) ),
'event-date' => \gmdate( 'Y-m-d H:i:s', strtotime( '+10 days 16:00:00' ) ), 'event-date' => \gmdate( 'Y-m-d H:i:s', strtotime( '+10 days 16:00:00' ) ),
'_event_video_url' => 'https://event-federation.eu/meeting-room', '_event_video_url' => 'https://event-federation.eu/meeting-room',