Commit 9b1a8f95 authored by Łukasz Nowak's avatar Łukasz Nowak

- check that document with name same as property sheet is not being removed during migration

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45134 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ca5b9805
...@@ -7506,6 +7506,51 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7506,6 +7506,51 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_BusinessTemplateWithPropertySheetMigrationWithDocument(self):
sequence_list = SequenceList()
sequence_string = '\
CreatePropertySheet \
CreateDocument \
CheckDocumentPropertySheetSameName \
CreateNewBusinessTemplate \
UseExportBusinessTemplate \
AddPropertySheetToBusinessTemplate \
AddDocumentToBusinessTemplate \
CheckModifiedBuildingState \
CheckNotInstalledInstallationState \
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemovePropertySheet \
RemoveDocument \
RemoveBusinessTemplate \
RemoveAllTrashBins \
ImportBusinessTemplate \
UseImportBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
InstallBusinessTemplate \
Tic \
CheckInstalledInstallationState \
CheckBuiltBuildingState \
CheckNoTrashBin \
CheckSkinsLayers \
CheckPropertySheetMigration \
CheckPropertySheetRemoved \
CheckDocumentExists \
UninstallBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckMigratedPropertySheetRemoved \
CheckDocumentRemoved \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestBusinessTemplate)) suite.addTest(unittest.makeSuite(TestBusinessTemplate))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment