예제 #1
0
 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()));
 }
예제 #2
0
파일: Wizard.php 프로젝트: aiesh/magento2
 /**
  * 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();
 }