public function setUp() { parent::setUp(); $this->Customer = $this->createCustomer(); $this->Order = $this->createOrder($this->Customer); $TaxRule = $this->app['eccube.repository.tax_rule']->getByRule(); $this->rate = $TaxRule->getTaxRate(); }
public function setUp() { parent::setUp(); $this->initializeMailCatcher(); $paths = array($this->app['config']['template_default_realdir']); $this->app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths)); $this->Customer = $this->createCustomer(); $this->BaseInfo = $this->app['eccube.repository.base_info']->get(1); }
public function setUp() { parent::setUp(); $this->BaseInfo = $this->app['eccube.repository.base_info']->get(); $this->BaseInfo->setOptionProductTaxRule(0); $this->TaxRule1 = $this->app['eccube.repository.tax_rule']->find(1); $this->TaxRule1->setApplyDate(new \DateTime('-1 day')); $this->app['orm.em']->flush(); }
public function setUp() { parent::setUp(); $this->Customer = $this->createCustomer(); $this->app['security']->setToken(new UsernamePasswordToken($this->Customer, null, 'Customer', $this->Customer->getRoles())); $this->CartService = $this->app['eccube.service.cart']; $this->CartService->setProductQuantity(1, 1)->save(); $this->ProductType1 = $this->app['eccube.repository.master.product_type']->find(1); $this->ProductType2 = $this->app['eccube.repository.master.product_type']->find(2); }
public function setUp() { parent::setUp(); $root = vfsStream::setup('rootDir'); $this->url = vfsStream::url('rootDir/test.csv'); // CsvExportService のファイルポインタを Vfs のファイルポインタにしておく $objReflect = new \ReflectionClass($this->app['eccube.service.csv.export']); $Property = $objReflect->getProperty('fp'); $Property->setAccessible(true); $Property->setValue($this->app['eccube.service.csv.export'], fopen($this->url, 'w')); }
public function setUp() { parent::setUp(); $this->ProductType1 = $this->app['eccube.repository.master.product_type']->find(1); $this->ProductType2 = $this->app['eccube.repository.master.product_type']->find(2); $this->Product = $this->createProduct(); // ProductType 2 の商品を作成 $this->Product2 = $this->createProduct(); foreach ($this->Product2->getProductClasses() as $ProductClass) { $ProductClass->setProductType($this->ProductType2); } $this->app['orm.em']->flush(); }
public function setUp() { parent::setUp(); $root = vfsStream::setup('rootDir'); $this->url = vfsStream::url('rootDir/test.csv'); // CsvExportService のファイルポインタを Vfs のファイルポインタにしておく $objReflect = new \ReflectionClass($this->app['eccube.service.csv.export']); $Property = $objReflect->getProperty('fp'); $Property->setAccessible(true); $Property->setValue($this->app['eccube.service.csv.export'], fopen($this->url, 'w')); $Csv = $this->app['eccube.repository.csv']->find(1); $Csv->setRank(1); $Csv->setEnableFlg(Constant::DISABLED); $this->app['orm.em']->flush(); }
public function setUp() { parent::setUp(); $this->client = new Client(); $this->checkStatus(); $config = $this->app['config']; $config['mail']['transport'] = 'smtp'; $config['mail']['host'] = '127.0.0.1'; $config['mail']['port'] = 1025; $config['mail']['username'] = null; $config['mail']['password'] = null; $config['mail']['encryption'] = null; $config['mail']['auth_mode'] = null; $this->app['config'] = $config; $this->app['swiftmailer.use_spool'] = false; $this->app['swiftmailer.options'] = $this->app['config']['mail']; $paths = array($this->app['config']['template_default_realdir']); $this->app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths)); $this->Customer = $this->createCustomer(); $this->BaseInfo = $this->app['eccube.repository.base_info']->get(1); }
public function setUp() { parent::setUp(); }