public function testCanNotExecuteWithInvalidTokens()
{
$dt = new \DateTime();
$this->actions->setCurrentTime($dt);
$this->request = $this->prepareHttpRequest('action/output3', 'POST', ['__elgg_ts' => $dt->getTimestamp(), '__elgg_token' => 'abcdefghi123456'], false, false);
$this->assertTrue($this->actions->register('output3', "{$this->actionsDir}/output3.php", 'public'));
$this->createService();
set_input('output', 'output3');
ob_start();
$result = $this->actions->execute('output3');
ob_end_clean();
$this->assertEquals(null, $result);
$response = _elgg_services()->responseFactory->getSentResponse();
$this->assertInstanceOf(RedirectResponse::class, $response);
$this->assertEquals(ELGG_HTTP_SEE_OTHER, $response->getStatusCode());
}