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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -