protected function setUp() { parent::setUp(); $this->modelManager = Shopware()->Container()->get('models'); $this->modelManager->beginTransaction(); $this->articleWriter = new ArticleWriter(); }
protected function setUp() { parent::setUp(); $this->modelManger = Shopware()->Container()->get('models'); $this->modelManger->beginTransaction(); $setupContext = new SetupContext(MainMenuItemInstaller::SHOPWARE_MIN_VERSION, self::RANDOM_PLUGIN_VERSION, self::RANDOM_PLUGIN_VERSION); $this->mainMenuItemInstaller = new MainMenuItemInstaller($setupContext, $this->modelManger); }
protected function setUp() { parent::setUp(); $this->modelManager = Shopware()->Container()->get('models'); $this->modelManager->beginTransaction(); $modelManagerStub = $this->getModelManagerStub(); $connection = Shopware()->Container()->get('dbal_connection'); $this->SUT = new DbalHelper($connection, $modelManagerStub); }