From b04e0d0fd4173f77f5035860df74ee43097b9256 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 12 Jul 2023 21:57:27 +0200 Subject: tests: AccessListTest expand is_private test. --- tests/unit/Access/AccessListTest.php | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/Access/AccessListTest.php b/tests/unit/Access/AccessListTest.php index 1b18a8340..2f185db17 100644 --- a/tests/unit/Access/AccessListTest.php +++ b/tests/unit/Access/AccessListTest.php @@ -160,6 +160,8 @@ class AccessListTest extends UnitTestCase { } /** + * The AccessList should be private if any of the fields are set, + * * @dataProvider isprivateProvider */ public function testIsPrivate($channel) { @@ -175,12 +177,30 @@ class AccessListTest extends UnitTestCase { 'channel_deny_cid' => '', 'channel_deny_gid' => '' ]], - 'only one set' => [[ + 'only allow_cid set' => [[ 'channel_allow_cid' => '', 'channel_allow_gid' => '', 'channel_deny_cid' => '', 'channel_deny_gid' => '' ]], + 'only allow_gid set' => [[ + 'channel_allow_cid' => '', + 'channel_allow_gid' => '', + 'channel_deny_cid' => '', + 'channel_deny_gid' => '' + ]], + 'only deny_cid set' => [[ + 'channel_allow_cid' => '', + 'channel_allow_gid' => '', + 'channel_deny_cid' => '', + 'channel_deny_gid' => '' + ]], + 'only deny_gid set' => [[ + 'channel_allow_cid' => '', + 'channel_allow_gid' => '', + 'channel_deny_cid' => '', + 'channel_deny_gid' => '' + ]], 'acid+null' => [[ 'channel_allow_cid' => '', 'channel_allow_gid' => null, -- cgit v1.2.3