Skip to content

Commit

Permalink
Merge pull request #1 from nanasess/lqdung1992-fix-payment-limit-point
Browse files Browse the repository at this point in the history
Fix price and pointUse
  • Loading branch information
lqdung1992 authored Oct 16, 2018
2 parents 469c434 + 846a1e4 commit db62da7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Eccube/Tests/Web/ShoppingControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,15 +579,17 @@ public function testCompleteWithChangeDeliveryName()

/**
* Check can use point when has payment limit
*
* https://github.com/EC-CUBE/ec-cube/issues/3916
*/
public function testPaymentLimitAndPointCombination()
{
$Customer = $this->createCustomer();
$Customer->setPoint(99999);
$this->entityManager->flush($Customer);

$price = 40000;
$pointUse = 40000;
$price = 27777;
$pointUse = 27777;
/** @var ProductClass $ProductClass */
$ProductClass = $this->container->get(ProductClassRepository::class)->find(1);
$ProductClass->setPrice02($price);
Expand Down

0 comments on commit db62da7

Please sign in to comment.