ENH Stop using deprecated Versioned methods (#121)

This commit is contained in:
Guy Sartorelli 2022-08-30 13:18:41 +12:00 committed by GitHub
parent 2721b8fe75
commit cd4c310e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class TestPage extends Page implements \TestPageInterface
$parent = static::getOrCreateParentPage();
$page->ParentID = $parent->ID;
$page->write();
$page->publish('Stage', 'Live');
$page->copyVersionToStage('Stage', 'Live');
});
}
}
@ -72,7 +72,7 @@ class TestPage extends Page implements \TestPageInterface
)
);
$parent->write();
$parent->doPublish();
$parent->publishRecursive();
}
});

View File

@ -21,7 +21,7 @@ class TestRegistryPage extends RegistryPage
$page->ParentID = $parent->ID;
$page->DataClass = TestRegistryDataObject::class;
$page->write();
$page->publish('Stage', 'Live');
$page->copyVersionToStage('Stage', 'Live');
});
}
}

View File

@ -82,7 +82,7 @@ class FTPageMakerTask extends BuildTask
$page->ParentID = $parentID;
$page->Title = "Test page {$fullPrefix}";
$page->write();
$page->publish('Stage', 'Live');
$page->copyVersionToStage('Stage', 'Live');
echo "Created '$page->Title' ($page->ClassName)\n";