protected function disableWpAutoUpdate()
    {
        $this->wpMockery->addFilter('automatic_updater_disabled', '__return_true');

        $this->wpMockery->addFilter('allow_minor_auto_core_updates', '__return_false');
        $this->wpMockery->addFilter('allow_major_auto_core_updates', '__return_false');
        $this->wpMockery->addFilter('allow_dev_auto_core_updates', '__return_false');

        $this->wpMockery->addFilter('auto_update_core', '__return_false');
        $this->wpMockery->addFilter('wp_auto_update_core', '__return_false');
        $this->wpMockery->addFilter('send_core_update_notification_email', '__return_false');

        $this->wpMockery->addFilter('auto_update_translation', '__return_false');
        $this->wpMockery->addFilter('auto_core_update_send_email', '__return_false');
        $this->wpMockery->addFilter('auto_update_plugin', '__return_false');
        $this->wpMockery->addFilter('auto_update_theme', '__return_false');

        $this->wpMockery->addFilter('automatic_updates_send_debug_email', '__return_false');
        $this->wpMockery->addFilter('automatic_updates_is_vcs_checkout', '__return_true');
        $this->wpMockery->addFilter('automatic_updates_send_debug_email ', '__return_false', 1);

        if (!defined('AUTOMATIC_UPDATER_DISABLED')) {
            define('AUTOMATIC_UPDATER_DISABLED', true);
        }

        if (!defined('WP_AUTO_UPDATE_CORE')) {
            define('WP_AUTO_UPDATE_CORE', false);
        }
    }