phpcs
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 49s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m0s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 59s

This commit is contained in:
André Menrath 2024-11-26 09:27:11 +01:00
parent 33bdba1ed0
commit c48fbecf6d

View file

@ -128,7 +128,7 @@ class Test_EventPrime extends WP_UnitTestCase {
*/ */
public function test_transformation_of_minimal_event_with_venue() { public function test_transformation_of_minimal_event_with_venue() {
// Create an EventPrime Event without content. // Create an EventPrime Event without content.
$ep_functions = new Eventprime_Basic_Functions(); $ep_functions = new Eventprime_Basic_Functions();
$venue_term_id = wp_insert_term( $this->mockup_venue['name'], 'em_venue' )['term_id']; $venue_term_id = wp_insert_term( $this->mockup_venue['name'], 'em_venue' )['term_id'];
add_term_meta( $venue_term_id, 'em_address', $this->mockup_venue['address'], true ); add_term_meta( $venue_term_id, 'em_address', $this->mockup_venue['address'], true );
@ -164,7 +164,7 @@ class Test_EventPrime extends WP_UnitTestCase {
*/ */
public function test_transformation_of_minimal_event_with_venue_with_hidden_address() { public function test_transformation_of_minimal_event_with_venue_with_hidden_address() {
// Create an EventPrime Event without content. // Create an EventPrime Event without content.
$ep_functions = new Eventprime_Basic_Functions(); $ep_functions = new Eventprime_Basic_Functions();
$venue_term_id = wp_insert_term( $this->mockup_venue['name'], 'em_venue' )['term_id']; $venue_term_id = wp_insert_term( $this->mockup_venue['name'], 'em_venue' )['term_id'];
add_term_meta( $venue_term_id, 'em_address', $this->mockup_venue['address'], true ); add_term_meta( $venue_term_id, 'em_address', $this->mockup_venue['address'], true );