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

setUp() public method

public setUp ( )
    public function setUp()
    {
        parent::setUp();
        $this->createProduct();
        $this->Customer = $this->createCustomer();
        $this->Customer->setName01('立方体長');
        $this->Customer2 = $this->createCustomer();
        $this->Customer2->setName01('立方隊員');
        $this->app['orm.em']->persist($this->Customer);
        $this->app['orm.em']->persist($this->Customer2);
        $this->app['orm.em']->flush();
        $this->Order = $this->createOrder($this->Customer);
        $this->Order1 = $this->createOrder($this->Customer);
        $this->Order2 = $this->createOrder($this->Customer2);
    }