コード例 #1
0
ファイル: VariantTest.php プロジェクト: GerDner/luck-docker
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     Shopware()->Models()->clear();
     $this->resourceArticle = new \Shopware\Components\Api\Resource\Article();
     $this->resourceArticle->setAcl(Shopware()->Acl());
     $this->resourceArticle->setManager(Shopware()->Models());
 }
コード例 #2
0
ファイル: CacheTest.php プロジェクト: GerDner/luck-docker
 protected function setUp()
 {
     parent::setUp();
     $httpCacheDir = Shopware()->Container()->getParameter('shopware.httpCache.cache_dir');
     $templateCacheDir = Shopware()->Container()->getParameter('shopware.template.cacheDir');
     @mkdir($httpCacheDir, 0777, true);
     @mkdir($templateCacheDir, 0777, true);
 }
コード例 #3
0
ファイル: OrderTest.php プロジェクト: GerDner/luck-docker
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->order = Shopware()->Db()->fetchRow("SELECT * FROM  `s_order` LIMIT 1");
 }