@GodziLaravel You don't have to use the registration test for that.
For the password reset test you can create a user by using a factory for that user.
To do this you have to create a factory for the User model.
By using a factory you can create the user in your password reset test method like this:
$user = User::factory()->create();
You can also create the user without a factory but that's a bad practise because you will propably need the user in multiple tests. By using a factory you can easily create a user in all those tests.
This are the docs on how to create a factory:
https://laravel.com/docs/10.x/eloquent-factories
In your tests you can also add a user fthat you can use in all the methods for that test.
By doing this you won't have to call the factory for each method.
You add the code below at the beginning of your test class.
private $user;
public function setUp(): void
{
parent::setUp();
$this->user = User::factory()->create();
}
After adding this you can call the user in your test methods with $this->user