[9.x] Forget component's cache and factory between tests (#44648)
[9.x] Forget component's cache and factory between tests (#44648)

* Forget component's cache and factory between tests

* Apply fixes from StyleCI

* Adds `forgetComponentsResolver`

Co-authored-by: StyleCI Bot <c71e7261d37a4f6ae4cfb0cbd79081310a237e67@styleci.io>
hafezdivandari/framework,laravel/framework,laravel/framework,hafezdivandari/framework