Now that our job application form is in place, it’s time to start testing it - and we’re going to begin with an application test.
In Symfony, an application test (sometimes called a feature test) interacts with your app in the same way a real user or browser would:
It makes an HTTP request, gets a response, and inspects that response for the expected content.
In this lesson, we’ll:
WebTestCase to spin up a test client that can send real HTTP requests into our app./apply page and confirm it loads successfully.first_namelast_nameemailcv upload fieldBy the end of this lesson, you’ll have written your first Symfony application test and seen how easy it is to simulate a real user interacting with your app - without ever opening a browser.
In the next steps, we’ll build on this by testing more complex scenarios like form submissions, validation, and database persistence.
0 comments