Provides some helper methods for unit-tests.
More...
|
static | add_policy ($params=[]) |
| Helper method that creates a new policy for testing.
|
|
static | create_versions ($numversions=2) |
| Helper method that prepare a policy document with some versions.
|
|
Provides some helper methods for unit-tests.
- Copyright
- 2018 David Mudrák david.nosp@m.@moo.nosp@m.dle.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ add_policy()
static tool_policy\test\helper::add_policy |
( |
| $params = [] | ) |
|
|
static |
Helper method that creates a new policy for testing.
- Parameters
-
- Return values
-
◆ create_versions()
static tool_policy\test\helper::create_versions |
( |
| $numversions = 2 | ) |
|
|
static |
Helper method that prepare a policy document with some versions.
- Parameters
-
int | $numversions | The number of policy versions to create. |
- Return values
-
array | Array with all the policy versions created. |
The documentation for this class was generated from the following file:
- admin/tool/policy/classes/test/helper.php