Eccube\Tests\Repository\OrderRepositoryGetQueryBuilderBySearchDataAdminTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        parent::setUp();
        $this->createProduct();
        $this->Customer = $this->createCustomer();
        $this->app['orm.em']->persist($this->Customer);
        $this->app['orm.em']->flush();
        $this->Order = $this->createOrder($this->Customer);
        $this->Order1 = $this->createOrder($this->Customer);
        $this->Order2 = $this->createOrder($this->createCustomer('[email protected]'));
        // 新規受付にしておく
        $NewStatus = $this->app['eccube.repository.order_status']->find($this->app['config']['order_new']);
        $this->Order1->setOrderStatus($NewStatus)->setOrderDate(new \DateTime());
        $this->Order2->setOrderStatus($NewStatus)->setOrderDate(new \DateTime());
        $this->app['orm.em']->flush();
    }