Пример #1
0
 /**
  * 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
 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
 /**
  * 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");
 }