public function testSteps()
 {
     $wizard = $this->wizard;
     $form = $this->wizard->create();
     $this->assertInstanceOf('Nette\\Forms\\Form', $form);
     $this->assertSame('step1', $form->getName());
     $this->assertSame(1, $wizard->getCurrentStep());
     $this->assertSame(1, $wizard->getLastStep());
     $wizard->setStep(2);
     $this->assertSame(1, $wizard->getCurrentStep());
     $wizard->setStep(-1);
     $this->assertSame(1, $wizard->getCurrentStep());
 }
Beispiel #2
0
 public function __construct(\Nette\Http\Session $session)
 {
     parent::__construct($session);
     self::$called = 0;
     self::$values = [];
 }