php - Selecting multiple options using Laracasts\Integrated -
i using laracasts\integrated library test web application. have form this:
<select multiple name="resource[]">  <option value="coal">coal</option> <option value="another">aluminum</option> . . </select>   my test case is:
$this->select('resource[]' , ['coal' , 'another']);   i error:
symfony\component\cssselector\exception\syntaxerrorexception:  expected identifier│ or "*", <delimiter "]" @ 11> found.   please me .
solution got gal:
my test case:
/**@test*/ public function add_new() {  $this->storeinput('resource', ['6pgm+au' ,'coal'], true)       ->andpress('submit') }      public function storeinput($element, $text, $force = false)     {         if ($force) {             $this->inputs[$element] = $text;             return $this;         }         else {             return parent::storeinput($element, $text);         }     }      
Comments
Post a Comment