1<?php
2
3namespace dokuwiki\plugin\aclplusregex\test;
4
5/**
6 * Class TestAction
7 *
8 * Makes internal methods public for testing and uses our custom test configuration
9 */
10class TestAction extends \action_plugin_aclplusregex
11{
12    const CONFFILE = __DIR__ . '/conf/aclplusregex.conf';
13
14    /** @inheritDoc */
15    public function evaluateRegex($regex, $id)
16    {
17        return parent::evaluateRegex($regex, $id);
18    }
19
20    /** @inheritDoc */
21    public function rulesToRegex($rules)
22    {
23        return parent::rulesToRegex($rules);
24    }
25
26    /** @inheritDoc */
27    public function loadACLRules($user, $groups)
28    {
29        return parent::loadACLRules($user, $groups);
30    }
31
32    /** @inheritDoc */
33    public function patternToRegexGroup($idpattern, $perm)
34    {
35        return parent::patternToRegexGroup($idpattern, $perm);
36    }
37
38    /** @inheritDoc */
39    public function getIDPatterns($entities, $id, $pattern)
40    {
41        return parent::getIDPatterns($entities, $id, $pattern);
42    }
43
44    /** @inheritDoc */
45    public function sortRules($rules)
46    {
47        return parent::sortRules($rules);
48    }
49
50}
51