public function testCanRespondToNonAjaxRequestFromOkResponseBuilder()
{
$this->assertTrue($this->actions->register('output4', "{$this->actionsDir}/output4.php", 'public'));
$this->request = $this->prepareHttpRequest('action/output4', 'POST', [], false, true);
$this->createService();
set_input('output', ['foo', 'bar']);
set_input('system_message', 'success');
set_input('forward_url', 'index');
set_input('forward_reason', ELGG_HTTP_OK);
$this->route();
$response = _elgg_services()->responseFactory->getSentResponse();
$this->assertInstanceOf(RedirectResponse::class, $response);
$this->assertEquals(ELGG_HTTP_FOUND, $response->getStatusCode());
$this->assertEquals(elgg_normalize_url('index'), $response->getTargetURL());
$this->assertContains('success', _elgg_services()->systemMessages->dumpRegister()['success']);
}