- Timestamp:
- 04/28/2020 04:36:39 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index.php
r9753 r9785 54 54 } 55 55 56 printf( 57 "\n* %s: %s", 58 $case_id, 59 $passed ? 'PASSED' : '_FAILED_' 60 ); 56 echo "\n\n* $case_id: _FAILED_"; 61 57 62 58 if ( ! $passed ) { … … 105 101 $cases = get_location_test_cases(); 106 102 107 printf( "\nRunning %d location tests \n", count( $cases ) );103 printf( "\nRunning %d location tests", count( $cases ) ); 108 104 109 105 foreach ( $cases as $case_id => $case ) { … … 920 916 $cases = get_events_test_cases(); 921 917 922 printf( "\n \nRunning %d events tests\n", count( $cases ) );918 printf( "\nRunning %d events tests", count( $cases ) ); 923 919 924 920 foreach ( $cases as $case_id => $case ) { … … 987 983 $cases = get_events_country_restriction_test_cases(); 988 984 989 printf( "\n \nRunning %d events restrict by country tests\n", count( $cases ) );985 printf( "\nRunning %d events restrict by country tests", count( $cases ) ); 990 986 991 987 foreach ( $cases as $case_id => $case ) { … … 1064 1060 $cases = build_response_test_cases(); 1065 1061 1066 printf( "\n \nRunning %d build_response() tests\n", count( $cases ) );1062 printf( "\nRunning %d build_response() tests", count( $cases ) ); 1067 1063 1068 1064 foreach ( $cases as $case_id => $case ) { … … 1173 1169 ); 1174 1170 1175 printf( "\n \nRunning %d is_client_core() tests\n", count( $cases ) );1171 printf( "\nRunning %d is_client_core() tests", count( $cases ) ); 1176 1172 1177 1173 foreach ( $cases as $user_agent => $expected_result ) { … … 1257 1253 } 1258 1254 1259 printf( "\n \nRunning %d add_regional_wordcamps() tests\n", 13 );1255 printf( "\nRunning %d add_regional_wordcamps() tests", 13 ); 1260 1256 1261 1257 $tests_expect_no_changes = array(); … … 1423 1419 $time_during_date_range = 1525887832; 1424 1420 1425 printf( "\n \nRunning %d maybe_add_wp15_promo() tests\n", 4 );1421 printf( "\nRunning %d maybe_add_wp15_promo() tests", 4 ); 1426 1422 1427 1423 // Test that the promo is added if there is not already a WP15 event. … … 1475 1471 ); 1476 1472 1477 printf( "\n \nRunning %d get_iso_3166_2_country_codes() tests\n", count( $cases ) );1473 printf( "\nRunning %d get_iso_3166_2_country_codes() tests", count( $cases ) ); 1478 1474 1479 1475 foreach ( $cases as $continent => $sample_country ) { … … 1514 1510 ); 1515 1511 1516 printf( "\n \nRunning 1 remove_duplicate_events() test\n" );1512 printf( "\nRunning 1 remove_duplicate_events() test" ); 1517 1513 1518 1514 $expected_result = array(
Note: See TracChangeset
for help on using the changeset viewer.