Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $Sex = $this->app['eccube.repository.master.sex']->find(1);
     $Payment = $this->app['eccube.repository.payment']->find(1);
     $OrderStatus = $this->app['eccube.repository.order_status']->find($this->app['config']['order_new']);
     for ($i = 0; $i < 10; $i++) {
         $Customer = $this->createCustomer('user-' . $i . '@example.com');
         $Customer->setSex($Sex);
         $Order = $this->createOrder($Customer);
         $Order->setOrderStatus($OrderStatus);
         $Order->setPayment($Payment);
         $this->app['orm.em']->flush();
     }
     // sqlite では CsvType が生成されないので、ここで作る
     $OrderCsvType = $this->app['eccube.repository.master.csv_type']->find(3);
     if (!is_object($OrderCsvType)) {
         $OrderCsvType = new CsvType();
         $OrderCsvType->setId(3);
         $OrderCsvType->setName('受注CSV');
         $OrderCsvType->setRank(4);
         $this->app['orm.em']->persist($OrderCsvType);
         $this->app['orm.em']->flush();
     }
     $ShipCsvType = $this->app['eccube.repository.master.csv_type']->find(4);
     if (!is_object($ShipCsvType)) {
         $ShipCsvType = new CsvType();
         $ShipCsvType->setId(4);
         $ShipCsvType->setName('配送CSV');
         $ShipCsvType->setRank(5);
         $this->app['orm.em']->persist($ShipCsvType);
         $this->app['orm.em']->flush();
     }
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $Csv = $this->app['eccube.repository.csv']->find(1);
     $Csv->setRank(1);
     $Csv->setEnableFlg(Constant::DISABLED);
     $this->app['orm.em']->flush();
 }
Exemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $this->removeClass();
     $this->Member = $this->app['eccube.repository.member']->find(2);
     for ($i = 0; $i < 3; $i++) {
         $ClassName = new ClassName();
         $ClassName->setName('class-' . $i)->setCreator($this->Member)->setDelFlg(0)->setRank($i);
         $this->app['orm.em']->persist($ClassName);
     }
     $this->app['orm.em']->flush();
 }
Exemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     $this->Customer = $this->createCustomer();
     $this->Product = $this->createProduct();
 }
Exemplo n.º 5
0
 public function setUp()
 {
     parent::setUp();
 }
Exemplo n.º 6
0
 public function tearDown()
 {
     parent::tearDown();
 }
Exemplo n.º 7
0
 public function tearDown()
 {
     $this->cleanUpMailCatcherMessages();
     parent::tearDown();
 }
Exemplo n.º 8
0
 public function setUp()
 {
     parent::setUp();
     $this->remove();
     $this->createCategories();
 }