In this video, you will learn how to fix the error like this Symfony\ Component\ HttpKernel\ Exception\ MethodNotAllowedHttpException.
The GET method is not supported for route testpost. Supported methods: POST. However your code is correct, but it still error.