diff --git a/master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py b/master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py index db10869815ce3275984526896c2ec7cb1617fe36..aa510793f16b5d4603ee80f3079d16ad7243e23f 100644 --- a/master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py +++ b/master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py @@ -110,6 +110,11 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin): finally: self.changeSkin(current_skin) + def stepCallUpdateStatusOnPlannedPayment(self, sequence, **kw): + sequence['payment'] = self.portal.portal_catalog.getResultValue( + portal_type="Payment Transaction", simulation_state="planned") + sequence['payment'].PaymentTransaction_updateStatus() + def test_AccountingTransaction_startPayment(self): sequence_list = SequenceList() sequence_string = self.register_new_user_sequence_string + '\ @@ -125,8 +130,24 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin): sequence_list.addSequenceString(sequence_string) sequence_list.play(self) + def stepCheckPlannedUnknownPayment(self, sequence): + self.assertEqual(sequence['payment'].getSimulationState(), 'planned') + self.assertEqual(self.portal.portal_catalog.countResults(portal_type='Payzen Event', + default_destination_uid=sequence['payment'].getUid(), + limit=1)[0][0], 0) + def test_PaymentTransaction_updateStatus_planned_unknown(self): - raise NotImplementedError + sequence_list = SequenceList() + sequence_string = self.register_new_user_sequence_string + '\ + LoginWebUser \ + CallUpdateStatusOnPlannedPayment \ + Tic \ + Logout \ + LoginERP5TypeTestCase \ + CheckPlannedUnknownPayment \ + ' + sequence_list.addSequenceString(sequence_string) + sequence_list.play(self) def test_PaymentTransaction_updateStatus_planned_registered(self): raise NotImplementedError diff --git a/master/bt5/vifib_erp5/bt/revision b/master/bt5/vifib_erp5/bt/revision index e966f9075d8ab3b93380ed202094ab60599ff1fc..499121066036ae5c63b283206688fa216a6619b4 100644 --- a/master/bt5/vifib_erp5/bt/revision +++ b/master/bt5/vifib_erp5/bt/revision @@ -1 +1 @@ -450 \ No newline at end of file +451 \ No newline at end of file