Eccube\Tests\EccubeTestCase::createOrder PHP Method

createOrder() public method

Order オブジェクトを生成して返す.
public createOrder ( Customer $Customer ) : Order
$Customer Eccube\Entity\Customer Customer インスタンス
return Eccube\Entity\Order
    public function createOrder(Customer $Customer)
    {
        $Product = $this->createProduct();
        $ProductClasses = $Product->getProductClasses();
        // 後方互換のため最初の1つのみ渡す
        return $this->app['eccube.fixture.generator']->createOrder($Customer, array($ProductClasses[0]));
    }