public function actionLoad() { parent::actionLoad(); $sets = ['name' => $this->getName(), 'packages' => $this->getPackages(), 'version' => $this->getVersion(), 'license' => $this->getLicense(), 'description' => $this->takePackage()->title, 'keywords' => $this->takePackage()->keywords, 'url' => $this->getUrl(), 'author' => $this->getAuthor(), 'author_email' => $this->getAuthorEmail()]; $this->setItems($sets, 'first'); foreach ($sets as $k => $v) { if (!$this->get($k)) { $this->delete($k); } } }
public function actionLoad() { parent::actionLoad(); $sets = ['name' => $this->getName(), 'type' => $this->getType(), 'description' => $this->takePackage()->title, 'keywords' => $this->takePackage()->keywords, 'homepage' => $this->takePackage()->homepage, 'license' => $this->takePackage()->license, 'support' => $this->support, 'authors' => $this->authors, 'require' => $this->require, 'require-dev' => $this->get('require-dev'), 'autoload' => $this->autoload]; $this->setItems($sets, 'first'); foreach (['require', 'require-dev'] as $k) { if (!$this->get($k)) { $this->delete($k); } } }
public function testSetTemplate() { $this->object->setTemplate($this->template); $this->assertSame($this->template, $this->object->getTemplate()); }
public function actionLoad() { parent::actionLoad(); $this->setItems(['name' => $this->getName()], 'first'); }
/** * Reorders config elements. */ public function actionSave() { $this->addActionItems(); $this->prependLanguageOptions(); return parent::actionSave(); }
public function actionLoad() { $this->module->runRequest('codeception/bootstrap'); parent::actionLoad(); }