mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Re-enable test for removing custom rules from live stage when forms are published with deletions
This commit is contained in:
parent
6a6102cb27
commit
398c65c540
@ -283,12 +283,9 @@ class UserDefinedFormTest extends FunctionalTest
|
||||
$this->assertNotEmpty($liveRule);
|
||||
|
||||
// Publish form, it should remove this rule
|
||||
/**
|
||||
* @todo Currently failing, revisit once https://github.com/silverstripe/silverstripe-versioned/issues/34 is resolved
|
||||
*/
|
||||
// $form->publishRecursive();
|
||||
// $liveRule = Versioned::get_one_by_stage(EditableCustomRule::class, 'Live', "\"EditableCustomRule_Live\".\"ID\" = $ruleID");
|
||||
// $this->assertEmpty($liveRule);
|
||||
$form->publishRecursive();
|
||||
$liveRule = Versioned::get_one_by_stage(EditableCustomRule::class, 'Live', "\"EditableCustomRule_Live\".\"ID\" = $ruleID");
|
||||
$this->assertEmpty($liveRule);
|
||||
}
|
||||
|
||||
public function testUnpublishing()
|
||||
|
Loading…
Reference in New Issue
Block a user