Skip to content

Commit

Permalink
Item11135: TwikiCompatibilityPlugin Foswiki::Meta purge
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x01@13966 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Feb 12, 2012
1 parent 676248f commit dea92ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion TWikiCompatibilityPlugin/lib/TWiki/Meta.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package TWiki::Meta;
use strict;
use warnings;

use Foswiki::Meta;
use Foswiki::Meta();

sub new {
shift;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ sub set_up {
$this->SUPER::set_up();
$this->{tmpdatafile} = $TWiki::cfg{TempfileDir} . '/tmpity-tmp.gif';
$this->{test_web2} = $this->{test_web} . 'Extra';
my $webObject = Foswiki::Meta->new( $this->{session}, $this->{test_web2} );
$webObject->populateNewWeb();
my $webObject = $this->populateNewWeb( $this->{test_web2} );
$webObject->finish();

return;
}
Expand Down Expand Up @@ -571,8 +571,7 @@ END
$this->assert($access);

# make sure meta overrides text, as documented - Item2953
my $meta =
Foswiki::Meta->new( $this->{session}, $this->{test_web}, $topic );
my ($meta) = $this->getUnloadedTopicObject( $this->{test_web}, $topic );
$meta->putKeyed(
'PREFERENCE',
{
Expand All @@ -590,7 +589,8 @@ END
$topic, $this->{test_web}, $meta
);
$this->assert($access);
$meta = Foswiki::Meta->new( $this->{session}, $this->{test_web}, $topic );
$meta->finish();
($meta) = Foswiki::Func::readTopic( $this->{test_web}, $topic );
$meta->putKeyed(
'PREFERENCE',
{
Expand All @@ -607,6 +607,7 @@ END
" * Set ALLOWTOPICVIEW = $TWiki::cfg{DefaultUserWikiName}\n",
$topic, $this->{test_web}, $meta
);
$meta->finish();
$this->assert( !$access );
$this->createNewFoswikiSession();

Expand Down Expand Up @@ -646,8 +647,7 @@ END
$this->assert($access);

# make sure meta overrides text, as documented - Item2953
my $meta =
Foswiki::Meta->new( $this->{session}, $this->{test_web}, $topic );
my ($meta) = $this->getUnloadedTopicObject( $this->{test_web}, $topic );
$meta->putKeyed(
'PREFERENCE',
{
Expand All @@ -665,7 +665,8 @@ END
$topic, $this->{test_web}, $meta
);
$this->assert($access);
$meta = Foswiki::Meta->new( $this->{session}, $this->{test_web}, $topic );
$meta->finish();
($meta) = Foswiki::Func::readTopic( $this->{test_web}, $topic );
$meta->putKeyed(
'PREFERENCE',
{
Expand All @@ -683,6 +684,7 @@ END
$topic, $this->{test_web}, $meta
);
$this->assert( !$access );
$meta->finish();

return;
}
Expand Down

0 comments on commit dea92ef

Please sign in to comment.