aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/Access
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-10-28 01:22:59 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-10-29 22:00:55 +0100
commit1be98d7b7fea30a929d27e7aa0b1412da3276b2c (patch)
tree7d7d5bbfbed65f89e6232235bf4b5534fe0fa03f /tests/unit/Access
parent66832c41e9fff481c20ca219b3cc0a4e53b8b551 (diff)
downloadvolse-hubzilla-1be98d7b7fea30a929d27e7aa0b1412da3276b2c.tar.gz
volse-hubzilla-1be98d7b7fea30a929d27e7aa0b1412da3276b2c.tar.bz2
volse-hubzilla-1be98d7b7fea30a929d27e7aa0b1412da3276b2c.zip
:white_check_mark: 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.
Diffstat (limited to 'tests/unit/Access')
-rw-r--r--tests/unit/Access/AccessListTest.php4
-rw-r--r--tests/unit/Access/PermissionsTest.php4
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/unit/Access/AccessListTest.php b/tests/unit/Access/AccessListTest.php
index 3dbe5cd65..dbc19fabb 100644
--- a/tests/unit/Access/AccessListTest.php
+++ b/tests/unit/Access/AccessListTest.php
@@ -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
diff --git a/tests/unit/Access/PermissionsTest.php b/tests/unit/Access/PermissionsTest.php
index 93c641fb1..73d0e7827 100644
--- a/tests/unit/Access/PermissionsTest.php
+++ b/tests/unit/Access/PermissionsTest.php
@@ -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 {
]
];
}
-} \ No newline at end of file
+}