Eccube\Tests\Service\ShoppingServiceTest::testIsOrderProduct PHP Method

testIsOrderProduct() public method

public testIsOrderProduct ( )
    public function testIsOrderProduct()
    {
        $Order = $this->createOrder($this->Customer);
        $Disp = $this->app['eccube.repository.master.disp']->find(\Eccube\Entity\Master\Disp::DISPLAY_SHOW);
        // 商品を購入可能な状態に設定
        foreach ($Order->getOrderDetails() as $Detail) {
            $Detail->getProduct()->setStatus($Disp);
            $Detail->getProductClass()->setSaleLimit(100);
            $Detail->setQuantity(2);
            $Detail->getProductClass()->setStockUnlimited(Constant::ENABLED);
        }
        $this->app['orm.em']->flush();
        $this->expected = true;
        $this->actual = $this->app['eccube.service.shopping']->isOrderProduct($this->app['orm.em'], $Order);
        $this->verify();
    }