diff --git a/master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py b/master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py index aa510793f16b5d4603ee80f3079d16ad7243e23f..7ef9fa4acd8d5e18be030b782318886e6eb62ff4 100644 --- a/master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py +++ b/master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py @@ -149,8 +149,34 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin): sequence_list.addSequenceString(sequence_string) sequence_list.play(self) + def stepCheckPlannedRegisteredPayment(self, sequence): + self.assertEqual(sequence['payment'].getSimulationState(), 'confirmed') + self.assertEqual(self.portal.portal_catalog.countResults(portal_type='Payzen Event', + default_destination_uid=sequence['payment'].getUid(), + limit=3)[0][0], 2) + raise NotImplementedError('Not finished checks.') + def test_PaymentTransaction_updateStatus_planned_registered(self): - raise NotImplementedError + sequence_list = SequenceList() + sequence_string = self.register_new_user_sequence_string + '\ + LoginWebUser \ + CallStartPaymentOnPlannedPayment \ + CleanTic \ + Logout \ + LoginERP5TypeTestCase \ + CheckPaymentPage \ + CleanTic \ + CheckRelatedSystemEvent \ + Logout \ + LoginWebUser \ + CallUpdateStatusOnPlannedPayment \ + CleanTic \ + Logout \ + LoginERP5TypeTestCase \ + CheckPlannedRegisteredPayment \ + ' + sequence_list.addSequenceString(sequence_string) + sequence_list.play(self) def test_PaymentTransaction_updateStatus_confirmed_no_change(self): raise NotImplementedError diff --git a/master/bt5/vifib_erp5/bt/revision b/master/bt5/vifib_erp5/bt/revision index 499121066036ae5c63b283206688fa216a6619b4..812799aa82ed573e25002889181db700932e62c9 100644 --- a/master/bt5/vifib_erp5/bt/revision +++ b/master/bt5/vifib_erp5/bt/revision @@ -1 +1 @@ -451 \ No newline at end of file +452 \ No newline at end of file