Simple Authntication

Posted 11 months ago by lorvent

I am Executing The unit test case for login page. I am getting The following Error. Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'http://localhost/index' +'http://localhost'

This is my Code public function testCorrectValues(){ $response = $this->post('/login',['email'=>'[email protected]','password'=>'123456','_token' => csrf_token()]); $response->assertRedirect('/index'); $response->assertStatus(200); $response->assertSeeText('Dashboard'); } I dont know What I Done mistake. Please Help me.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.