/**
  * setUp.
  */
 public function setUp()
 {
     parent::setUp();
     // recommend for product 1 with rank 1
     $this->initRecommendData(1, 1);
     // recommend for product 2 with rank 2
     $this->initRecommendData(2, 2);
 }
 public function setUp()
 {
     parent::setUp();
     $root = vfsStream::setup('rootDir');
     vfsStream::newDirectory('user_data');
     // 一旦別の変数に代入しないと, config 以下の値を書きかえることができない
     $config = $this->app['config'];
     $config['template_default_realdir'] = vfsStream::url('rootDir');
     $config['user_data_realdir'] = $config['template_default_realdir'] . '/user_data';
     mkdir($config['user_data_realdir']);
     $this->app['config'] = $config;
     $this->DeviceType = $this->app['orm.em']->getRepository('Eccube\\Entity\\Master\\DeviceType')->find(DeviceType::DEVICE_TYPE_PC);
     $PageLayout = new PageLayout();
     $PageLayout->setUrl($this->fileName)->setFileName($this->fileName)->setDeviceType($this->DeviceType)->setEditFlg(PageLayout::EDIT_FLG_USER);
     $this->app['orm.em']->persist($PageLayout);
     $this->app['orm.em']->flush();
 }
 public function tearDown()
 {
     $this->cleanUpMailCatcherMessages();
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $this->logIn();
 }
 /**
  * please ensure have 1 or more order in database before testing
  */
 public function setUp()
 {
     parent::setUp();
 }
 public function tearDown()
 {
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $this->Customer = $this->createCustomer();
 }
 public function setUp()
 {
     parent::setUp();
     // TODO: Change the autogenerated stub
 }
 /**
  * Setup.
  */
 public function setUp()
 {
     parent::setUp();
     $this->addCategoryContent(CATEGORY_ID, CATEGORY_CONTENT);
 }
 public function setUp()
 {
     parent::setUp();
     $this->remove();
     $this->createCategories();
 }