Permalink
Browse files

MINOR Fixed SiteTreeFutureState::on_db_reset() invocation

  • Loading branch information...
1 parent 4238818 commit ca1d879b0caf018114a3a491377525d97a14ad1d @chillu chillu committed Oct 18, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 tests/ThreeStepWorkflowTest.php
  2. +1 −1 tests/TwoStepWorkflowTest.php
@@ -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));
@@ -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));

0 comments on commit ca1d879

Please sign in to comment.