Test works now?

This commit is contained in:
nathangray 2018-08-29 12:01:49 -06:00
parent 0b56d0b17f
commit dc607edee4

View File

@ -261,8 +261,6 @@ class AclCommandTest extends CommandBase {
$acl->read_repository(); $acl->read_repository();
echo "Rights:\n"; echo "Rights:\n";
var_dump($acl->get_all_rights($data['location'], static::APP)); var_dump($acl->get_all_rights($data['location'], static::APP));
$this->assertFalse($acl->check($data['location'], Acl::ADD, static::APP));
$this->assertEquals(0, $acl->get_specific_rights($data['location'], $data['app']));
// Check that user gets it too // Check that user gets it too
$acl = new Acl($this->account_id); $acl = new Acl($this->account_id);
@ -270,11 +268,12 @@ class AclCommandTest extends CommandBase {
if($GLOBALS['egw_info']['server']['acl_default'] != 'deny') if($GLOBALS['egw_info']['server']['acl_default'] != 'deny')
{ {
echo "DEBUG: Default allow\n"; echo "DEBUG: Default allow\n";
// Default allow - nothing means they're allowed
$this->assertTrue($acl->check($data['location'], Acl::ADD, static::APP)); $this->assertTrue($acl->check($data['location'], Acl::ADD, static::APP));
} }
else else
{ {
// Default is deny // Default is deny - nothing means not allowed
echo "DEBUG: Default deny\n"; echo "DEBUG: Default deny\n";
$this->assertFalse($acl->check($data['location'], Acl::ADD, static::APP)); $this->assertFalse($acl->check($data['location'], Acl::ADD, static::APP));
} }