#[Package('system-settings')]
class UserRecoveryControllerTest extends TestCase
{ use AdminFunctionalTestBehaviour;
use EventDispatcherBehaviour;
private const VALID_EMAIL = 'info@shopware.com';
public function testUpdateUserPassword(): void
{ $this->
createRecovery(self::VALID_EMAIL
);
$this->
getBrowser()->
request( 'PATCH',
'/api/_action/user/user-recovery/password',
[ 'hash' =>
$this->
getHash(),
'password' => 'NewPassword!',
'passwordConfirm' => 'NewPassword!',
] );