+
+ public function test_reset_request_with_not_found_user_is_throttled()
+ {
+ for ($i = 0; $i < 11; $i++) {
+ $response = $this->post('/password/email', [
+ ]);
+ }
+
+ $response->assertStatus(429);
+ }
+
+ public function test_reset_call_is_throttled()
+ {
+ for ($i = 0; $i < 11; $i++) {
+ $response = $this->post('/password/reset', [
+ 'email' => "arandomuser{$i}@example.com",
+ 'token' => "randomtoken{$i}",
+ ]);
+ }
+
+ $response->assertStatus(429);
+ }