Skip to content

Commit

Permalink
Merge pull request #4 from chihiro-adachi/kurozumi-patch-8
Browse files Browse the repository at this point in the history
テストを追加
  • Loading branch information
kurozumi authored Dec 18, 2019
2 parents 95a6271 + 1fbab28 commit 3add210
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions tests/Eccube/Tests/Entity/DeliveryDurationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Eccube\Tests\Entity;

use Eccube\Repository\DeliveryDurationRepository;
use Eccube\Tests\EccubeTestCase;

class DeliveryDurationTest extends EccubeTestCase
{
private $deliveryDurationRepository;

public function setUp()
{
parent::setUp();
$this->deliveryDurationRepository = $this->container->get(DeliveryDurationRepository::class);
}

/**
* @see https://github.com/EC-CUBE/ec-cube/pull/4405
*/
public function testBackOrderedDuration()
{
$BackorderedId = 9;
$BackorderedDuration = -1;

$this->expected = $BackorderedDuration;
$this->actual = $this->deliveryDurationRepository->find($BackorderedId)->getDuration();

$this->verify();
}
}

0 comments on commit 3add210

Please sign in to comment.