Permalink
Browse files

Item2070: Fix the unit tests. I used SaveScriptTests.pm as an example…

… of how to do it on the release branch.

git-svn-id: http://svn.foswiki.org/branches/Release01x00@4939 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
MichaelTempest MichaelTempest
MichaelTempest authored and MichaelTempest committed Sep 15, 2009
1 parent dc83694 commit 31cdff5a7352dbcd9988447a1e41a84783d2df2a
Showing with 2 additions and 2 deletions.
  1. +2 −2 WysiwygPlugin/test/unit/WysiwygPlugin/WysiwygPluginTests.pm
@@ -24,11 +24,12 @@ use Unit::Request;
use Unit::Response;
use Foswiki;
use Foswiki::Plugins::WysiwygPlugin;
use Foswiki::UI::Save;
use strict;
use Carp;
my $UI_FN;
my $UI_FN = \&Foswiki::UI::Save::save;
sub new {
my $self = shift()->SUPER::new(@_);
@@ -39,7 +40,6 @@ sub set_up {
my $this = shift;
$this->SUPER::set_up();
$UI_FN ||= $this->getUIFn('save');
$Foswiki::cfg{Plugins}{WysiwygPlugin}{Enabled} = 1;
$WC::encoding = undef;

0 comments on commit 31cdff5

Please sign in to comment.