public function testGetWizardSteps() { $steps = $this->_object->getWizardSteps(); $this->assertEquals(2, count($steps)); $this->assertCount(2, $steps); $this->assertEquals(array('begin', 'locale'), array($steps[0]->getName(), $steps[1]->getName())); }
/** * Init install wizard * @param UrlInterface $urlBuilder * @param Config $installConfig */ public function __construct(UrlInterface $urlBuilder, Config $installConfig) { $this->_steps = $installConfig->getWizardSteps(); $this->_urlBuilder = $urlBuilder; $this->_initSteps(); }