From 41f116c3e57cbad1b177dae6d036f13d394b2253 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 29 Aug 2018 11:10:33 -0600 Subject: [PATCH] Some debug for test --- admin/tests/AclCommandTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/admin/tests/AclCommandTest.php b/admin/tests/AclCommandTest.php index 81c152ec62..b28fc0b167 100644 --- a/admin/tests/AclCommandTest.php +++ b/admin/tests/AclCommandTest.php @@ -233,11 +233,16 @@ class AclCommandTest extends CommandBase { */ public function testRemoveForGroupToEmpty() { + echo "\n== DEBUG ==\n"; // Set up $acl = new Acl($this->group_id); $acl->add_repository(static::APP, $GLOBALS['egw_info']['user']['account_id'], $this->group_id, Acl::ADD); $acl->read_repository(); + echo "\nBefore:\n"; + var_dump($acl->get_all_rights($GLOBALS['egw_info']['user']['account_id'])); + echo "Data:\n"; + var_dump($data); $data = array( 'allow' => false, 'account' => $this->group_id, @@ -252,7 +257,8 @@ class AclCommandTest extends CommandBase { // Check group $acl = new Acl($this->group_id); $acl->read_repository(); - var_dump($acl->get_rights($data['location'])); + echo "Rights:\n"; + var_dump($acl->get_all_rights($data['location'])); $this->assertFalse($acl->check($data['location'], Acl::ADD, static::APP)); $this->assertEquals(0, $acl->get_specific_rights($data['location'], $data['app']));