Jetpack_Sync_Settings::set_importing PHP Метод

set_importing() статический публичный Метод

static public set_importing ( $is_importing )
    static function set_importing($is_importing)
    {
        // set to NULL to revert to WP_IMPORTING, the standard behaviour
        self::$is_importing = $is_importing;
    }

Usage Example

 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);
 }
All Usage Examples Of Jetpack_Sync_Settings::set_importing