Skip to content

Commit

Permalink
Revert "reset Event System in TestRequest"
Browse files Browse the repository at this point in the history
This reverts commit d09a8e0.

We have test that manipulate the event handler (eg. registering their
own events on that handler) which broke with above commit.

A better way needs to be found.
  • Loading branch information
splitbrain committed Feb 2, 2023
1 parent d09a8e0 commit 8f5f1b8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions _test/core/TestRequest.php
Expand Up @@ -4,7 +4,6 @@
* runtime inspection.
*/

use dokuwiki\Extension\EventHandler;
use dokuwiki\Input\Input;

/**
Expand Down Expand Up @@ -149,10 +148,6 @@ public function execute($uri = '/doku.php') {
$_POST = $this->post;
$_REQUEST = array_merge($_GET, $_POST);

// reset event handler
global $EVENT_HANDLER;
$EVENT_HANDLER = new EventHandler();

// reset output buffer
$this->output_buffer = '';

Expand Down

0 comments on commit 8f5f1b8

Please sign in to comment.