Exemplo n.º 1
0
 public function tearDown()
 {
     if ($this->dictionary) {
         $this->dictionary->reset();
     }
     parent::tearDown();
 }
Exemplo n.º 2
0
 /**
  * Setup a basic form with only one field and a submit button
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->formit->setOptions(array('validate' => 'name:required', 'placeholderPrefix' => 'fi.', 'submitVar' => 'submit-btn', 'hooks' => 'email', 'emailSubject' => 'Unit Test Email', 'emailTo' => '*****@*****.**', 'emailToName' => 'Test User', 'emailMultiSeparator' => ',', 'emailTpl' => $this->formit->config['testsPath'] . 'Data/Chunks/emailhook.chunk.tpl'));
     $this->formit->initialize('web');
     $_POST = array('name' => 'Mr. Tester', 'submit-btn' => 'Submit Contact Form', 'checkboxes' => array(0 => 'one', 1 => 'two'), 'named' => array('three' => 'THREE', 'four' => 'FOUR'));
     $_REQUEST = $_POST;
 }
 /**
  * Setup a basic form with only one field and a submit button
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->formit->setOptions(array('validate' => 'name:required', 'placeholderPrefix' => 'fi.', 'submitVar' => 'submit-btn', 'hooks' => $this->formit->config['snippetsPath'] . 'snippet.formitautoresponder.php', 'fiarSubject' => 'Unit Test Email', 'fiarToField' => 'email', 'fiarTpl' => $this->formit->config['testsPath'] . 'Data/Chunks/emailhook.chunk.tpl', 'fiarMultiSeparator' => ',', 'fiarMultiWrapper' => '[[+value]]'));
     $this->formit->initialize('web');
     $_POST = array('name' => 'Mr. Tester', 'email' => '*****@*****.**', 'submit-btn' => 'Submit Contact Form', 'checkboxes' => array(0 => 'one', 1 => 'two'), 'named' => array('three' => 'THREE', 'four' => 'FOUR'));
     $_REQUEST = $_POST;
 }
Exemplo n.º 4
0
 /**
  * Setup a basic form with only one field and a submit button
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->formit->config['validate'] = 'name:required,email:email:required';
     $this->formit->config['placeholderPrefix'] = 'fi.';
     $this->formit->config['submitVar'] = 'submit-btn';
     $this->formit->initialize('web');
     $_POST = array('name' => 'Mr. Tester', 'email' => '*****@*****.**', 'submit-btn' => 'Submit Contact Form');
     $_REQUEST = $_POST;
 }
Exemplo n.º 5
0
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->formit->config['validate'] = 'name:required';
     $this->formit->config['placeholderPrefix'] = 'fi.';
     $this->formit->config['submitVar'] = 'submit-btn';
     $this->formit->config['hooks'] = '';
     $this->formit->initialize('web');
     $_POST = array('name' => 'John Doe', 'email' => '*****@*****.**', 'submit-btn' => 'Submit Contact Form');
     $_REQUEST = $_POST;
 }
Exemplo n.º 6
0
 /**
  * Setup a basic form with only one field and a submit button
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->formit->config['validate'] = 'name:required';
     $this->formit->config['placeholderPrefix'] = 'fi.';
     $this->formit->config['submitVar'] = 'submit-btn';
     $this->formit->config['hooks'] = 'math';
     $this->formit->initialize('web');
     $_POST = array('name' => 'Mr. Tester', 'submit-btn' => 'Submit Contact Form', 'math' => 100, 'op1' => 42, 'op2' => 58, 'operator' => '+');
     $_REQUEST = $_POST;
 }
Exemplo n.º 7
0
 public function tearDown()
 {
     $this->formit->stateOptions = null;
     parent::tearDown();
 }
Exemplo n.º 8
0
 public function tearDown()
 {
     $this->formit->countryOptions = null;
     parent::tearDown();
 }
Exemplo n.º 9
0
 public function tearDown()
 {
     parent::tearDown();
 }