public function testCanRespondToNonAjaxRequestForPageThatForwards()
{
$this->request = $this->prepareHttpRequest('phpunit', 'GET');
$this->createService();
elgg_register_page_handler('phpunit', function () {
_elgg_services()->responseFactory->redirect('index');
return elgg_ok_response('foo');
});
$this->assertTrue($this->route());
$response = _elgg_services()->responseFactory->getSentResponse();
$this->assertInstanceOf(RedirectResponse::class, $response);
$this->assertEquals(ELGG_HTTP_FOUND, $response->getStatusCode());
}