mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Added setup/teardown routines to SiteTreeActionsTest to avoid breaking with Translatable enabled on recent canTranslate()/canEdit() extensions
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88145 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
16a67fe479
commit
09822abd09
@ -16,6 +16,18 @@ class SiteTreeActionsTest extends FunctionalTest {
|
|||||||
|
|
||||||
static $fixture_file = 'sapphire/tests/SiteTreeActionsTest.yml';
|
static $fixture_file = 'sapphire/tests/SiteTreeActionsTest.yml';
|
||||||
|
|
||||||
|
static function set_up_once() {
|
||||||
|
SiteTreeTest::set_up_once();
|
||||||
|
|
||||||
|
parent::set_up_once();
|
||||||
|
}
|
||||||
|
|
||||||
|
static function tear_down_once() {
|
||||||
|
SiteTreeTest::tear_down_once();
|
||||||
|
|
||||||
|
parent::tear_down_once();
|
||||||
|
}
|
||||||
|
|
||||||
function testActionsPublishedRecord() {
|
function testActionsPublishedRecord() {
|
||||||
if(class_exists('SiteTreeCMSWorkflow')) return true;
|
if(class_exists('SiteTreeCMSWorkflow')) return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user