/** * 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()); }
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); }
/** * 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"); }