static function set_importing($is_importing)
{
// set to NULL to revert to WP_IMPORTING, the standard behaviour
self::$is_importing = $is_importing;
}
function test_does_set_silent_flag_true_while_importing() { Jetpack_Sync_Settings::set_importing(true); $this->factory->post->create(); $this->sender->do_sync(); $this->assertObjectHasAttribute('silent', $this->server_event_storage->get_most_recent_event('wp_insert_post')); $this->assertTrue($this->server_event_storage->get_most_recent_event('wp_insert_post')->silent); }