/** * 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->resource = $this->getMockForAbstractClass('\\Shopware\\Components\\Api\\Resource\\Resource'); $this->resource->setManager(Shopware()->Models()); }
protected function setUp() { parent::setUp(); Shopware()->Models()->clear(); $this->resource = $this->createResource(); $this->resource->setManager(Shopware()->Models()); }