Example #1
0
 /**
  * Test the compilation of form search
  * 
  * @group laravel
  */
 public function testFormSearch()
 {
     $form1 = Form::input('search', 'foo');
     $form2 = Form::search('foo');
     $form3 = Form::search('foo', 'foobar');
     $form4 = Form::search('foo', null, array('class' => 'span2'));
     $this->assertEquals('<input type="search" name="foo" id="foo">', $form1);
     $this->assertEquals($form1, $form2);
     $this->assertEquals('<input type="search" name="foo" value="foobar" id="foo">', $form3);
     $this->assertEquals('<input class="span2" type="search" name="foo" id="foo">', $form4);
 }