Are you sure the select field is filled? Since you run a test the data is probably coming from another database and the languages select is not filled since their is no data for languages in the database. Try to fill the languages database before executing this command
Jul 30, 2015
3
Level 15
Struggeling with a PHPUnit test in L5.1
Hi,
I´m writing some tests atm and have a test failing right now. I can´t find the error :(
I have a Form with
{!! Form::select('language_id', $languages->lists('name', 'id')->all(), null, ['class' => 'form-control']) !!}
and my test tries this:
$this->actingAs($user)->visit('categories/create')->select('language_id', 1)->press('Submit');
I get this Error
InvalidArgumentException: Nothing matched the filter [1] CSS query provided for [http://my-side.com/categories/create]
Please or to participate in this conversation.