Adds tests regarding `Request::hasSession` and `Request::getSession` (#40424)
Adds tests regarding `Request::hasSession` and `Request::getSession` (#40424)


morrislaptop/framework,driesvints/framework,JamesForks/framework,leo108/laravel_framework,lucasmichot/framework,dwightwatson/framework,driesvints/framework,arturock/framework,hafezdivandari/framework,dwightwatson/framework,samlev/framework,laravel/framework,arturock/framework,hafezdivandari/framework,morrislaptop/framework,lucasmichot/framework,arturock/framework,JamesForks/framework,leo108/laravel_framework,laravel/framework,samlev/framework