Level 13
Update: My bad. I found out that withoutExceptionHandling() had made it to Laravel 5.5 and we don't have to do it manually anymore. Yo!
2 likes
This is my first attempt at writing tests and I'm super confused about what's going on. Here's my first test -
/** @test */
public function an_authenticated_user_can_view_add_a_question_form() {
$this->withExceptionHandling();
$this->signIn();
$this->get('questions/add')
->assertSee('Add New Question');
}
I haven't yet defined the route and yet, phpUnit returns green. I'm expecting an error that says round doesn't exist.
PS: Commenting $this->withExceptionHandling(); doesn't change anything.
Please or to participate in this conversation.