Eccube\Tests\Entity\OrderTest::testGetTotalPrice PHP Method

testGetTotalPrice() public method

public testGetTotalPrice ( )
    public function testGetTotalPrice()
    {
        $faker = $this->getFaker();
        $Order = $this->app['eccube.fixture.generator']->createOrder($this->Customer, array(), null, $faker->randomNumber(5), $faker->randomNumber(5));
        $this->expected = $Order->getSubTotal() + $Order->getCharge() + $Order->getDeliveryFeeTotal() - $Order->getDiscount();
        $this->actual = $Order->getTotalPrice();
        $this->verify();
    }