phpcs
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 35s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m0s

This commit is contained in:
André Menrath 2024-09-25 11:16:41 +02:00
parent b361295577
commit b8bf5a28b3

View file

@ -194,7 +194,7 @@ class Test_VS_Event_List extends WP_UnitTestCase {
wp_set_post_terms( $wp_post_id, $category_id_music['term_id'], 'event_cat' ); wp_set_post_terms( $wp_post_id, $category_id_music['term_id'], 'event_cat' );
// Call the transformer. // Call the transformer.
$event_array = \Activitypub\Transformer\Factory::get_transformer( get_post( $wp_post_id ) )->to_object()->to_array(); $event_array = \Activitypub\Transformer\Factory::get_transformer( get_post( $wp_post_id ) )->to_object()->to_array();
// See if the default category mapping is applied. // See if the default category mapping is applied.
$this->assertEquals( 'MUSIC', $event_array['category'] ); $this->assertEquals( 'MUSIC', $event_array['category'] );