Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 5fb868d

Browse files
author
Dmytro Yushkin
committed
MAGETWO-63851: Re-implement cancel guarantee mechanism
- Removed some guarantee cancel checks
1 parent 149c261 commit 5fb868d

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Model/Guarantee/CancelingServiceTest.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -65,31 +65,6 @@ protected function setUp()
6565
]);
6666
}
6767

68-
/**
69-
* Checks a test case, when Signifyd guarantee was declined.
70-
*
71-
* @covers \Magento\Signifyd\Model\Guarantee\CancelingService::cancelForOrder
72-
* @magentoDataFixture Magento/Signifyd/_files/case.php
73-
* @magentoConfigFixture current_store fraud_protection/signifyd/active 1
74-
*/
75-
public function testCancelForOrderWithDeclinedGuarantee()
76-
{
77-
/** @var CaseRepositoryInterface $caseRepository */
78-
$caseRepository = $this->objectManager->get(CaseRepositoryInterface::class);
79-
$caseEntity = $caseRepository->getByCaseId(self::$caseId);
80-
$caseEntity->setGuaranteeDisposition(CaseInterface::GUARANTEE_DECLINED);
81-
$caseRepository->save($caseEntity);
82-
83-
$this->gateway->expects(self::never())
84-
->method('cancelGuarantee');
85-
86-
$this->logger->expects(self::never())
87-
->method('error');
88-
89-
$result = $this->service->cancelForOrder($caseEntity->getOrderId());
90-
self::assertFalse($result);
91-
}
92-
9368
/**
9469
* Checks a test case, when Signifyd gateway throws an exception.
9570
*

0 commit comments

Comments
 (0)