Skip to content

Commit

Permalink
MINOR Fixed SiteTreeFutureState::on_db_reset() invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Oct 18, 2011
1 parent 4238818 commit ca1d879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/ThreeStepWorkflowTest.php
Expand Up @@ -180,7 +180,7 @@ function testManipulatingGroupsDuringAWorkflow() {
$page->write();
$page->ApproverGroups()->add($customauthorgroup);
// Clear permission cache
SiteTree::on_db_reset();
SiteTreeFutureState::on_db_reset();

$this->assertTrue($page->canApprove($customauthor));

Expand Down
2 changes: 1 addition & 1 deletion tests/TwoStepWorkflowTest.php
Expand Up @@ -233,7 +233,7 @@ function testManipulatingGroupsDuringAWorkflow() {
$page->CanPublishType = 'OnlyTheseUsers';
$page->write();
$page->PublisherGroups()->add($customauthorgroup);
SiteTree::on_db_reset();
SiteTreeFutureState::on_db_reset();

$this->assertTrue($page->canPublish($customauthor));

Expand Down

0 comments on commit ca1d879

Please sign in to comment.