Skip to content

Commit c09cc99

Browse files
committedFeb 20, 2023
test last dokuwiki compatible
1 parent 09bee36 commit c09cc99

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed
 

‎_test/baseTest.php

+10-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class baseTest extends DokuWikiTest
1414
{
1515

1616

17-
public function setUp()
17+
public function setUp(): void
1818
{
1919
$this->pluginsEnabled[] = helper_plugin_stale::PLUGIN_NAME;
2020
parent::setUp();
@@ -32,7 +32,15 @@ public function test_base()
3232
{
3333

3434
$request = new TestRequest();
35-
TestUtility::runAsAdmin($request);
35+
36+
// run as admin
37+
global $conf;
38+
$conf['useacl'] = 1;
39+
$user = "admin";
40+
$conf['superuser'] = $user;
41+
$conf['remoteuser'] = $user;
42+
$request->setServer('REMOTE_USER', $user);
43+
3644

3745
$response = $request->get(array('do' => 'admin', 'page' => "config"), '/doku.php');
3846

@@ -160,8 +168,4 @@ public function test_plugin_default()
160168
}
161169

162170

163-
164-
165-
166-
167171
}

0 commit comments

Comments
 (0)