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

Laravel authenticated tests, phpunit #245

Open
Coding-Challenger opened this issue Jun 1, 2021 · 0 comments
Open

Laravel authenticated tests, phpunit #245

Coding-Challenger opened this issue Jun 1, 2021 · 0 comments

Comments

@Coding-Challenger
Copy link

How can I do the following using this package?

If want to log an user in my application to test, I can do the following
public function setUp() {
$this->be(App\User::first()) //now I'm logged to that first user in any test inside this class
}
How can I do the following with this package? Is it possible?

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

1 participant