I'm trying to write some functional tests but am having an issue getting a valid page back when using Director::test(). All I get is a 404 - page not found.
I have a simple test that calls:
$response1 = Director::test('contact/'); Debug::show("<!-- START ".$response1->getBody()." END -->");
The debug output shows HTML for the 404 page... so my test obviously fails because the HTML code I'm asserting to validate the page loaded properly is absent.
What am I missing here?