✅ Some more work on unit tests.
Some small improvements for coverage report. Add more functions from include/text.php Update composer dev libraries for phpunit.
This commit is contained in:
@@ -121,7 +121,9 @@ class AccessListTest extends UnitTestCase {
|
||||
|
||||
/**
|
||||
* set_from_array() calls some other functions, too which are not yet unit tested.
|
||||
* @uses ::perms2str()
|
||||
* @uses ::perms2str
|
||||
* @uses ::sanitise_acl
|
||||
* @uses ::notags
|
||||
*/
|
||||
public function testSetFromArray() {
|
||||
// array
|
||||
|
@@ -57,7 +57,7 @@ class PermissionsTest extends UnitTestCase {
|
||||
[],
|
||||
['perm1' => 0, 'perm2' => 0]
|
||||
],
|
||||
'valild' => [
|
||||
'valid' => [
|
||||
[['perm1' => 1]],
|
||||
['perm1' => 1, 'perm2' => 0]
|
||||
]
|
||||
@@ -145,4 +145,4 @@ class PermissionsTest extends UnitTestCase {
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user