Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit: The user is not authenticated Failed asserting that false is true. #7

Closed
amirwebd3v opened this issue Dec 1, 2020 · 1 comment

Comments

@amirwebd3v
Copy link

سلام وقتتون بخیر من تو قسمت تستینگ به این ارور برخوردم تمام کد ها رو چک کردم مطابق آموزش هستن لاگین با شماره موبایل هم انجام میشه اما تو تست ارور میگیره

public function test_user_can_login_by_mobile_number()
{
$user=User::create([
'first-name'=>$this->faker->firstName,
'email'=>$this->faker->safeEmail,
'mobile_number'=>'9381234456',
'password'=>bcrypt('A!123a$%'),
]);
$this->post(route('login'),[
'email'=>$user->mobile,
'password'=>'A!123a$%'
]);
$this->assertAuthenticated();
}

@faridepc78
Copy link

faridepc78 commented Dec 3, 2020

سلام اگه طبق آموزش استاد رفتید جلو مشکلی نباید باشه مجداد تست کنید
اینم کد صحیح

test_code

result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants