mirror of
https://github.com/10h30/wp-strava.git
synced 2026-06-05 15:10:01 +09:00
Fixed Activity filter and added Activity Unit Test
This commit is contained in:
@@ -8,3 +8,10 @@ require_once dirname( __FILE__ ) . '/../includes/autoload.php';
|
||||
require_once dirname( __FILE__ ) . '/../vendor/autoload.php';
|
||||
|
||||
WP_Mock::bootstrap();
|
||||
|
||||
// Pseudo mocks for WP functions.
|
||||
if ( ! function_exists( 'number_format_i18n' ) ) :
|
||||
function number_format_i18n( $number, $decimals ) {
|
||||
return number_format( $number, $decimals );
|
||||
}
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user