mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 21:01:52 +02:00
Some more debug for test
This commit is contained in:
parent
41f116c3e5
commit
0ff33ce751
@ -234,15 +234,15 @@ class AclCommandTest extends CommandBase {
|
|||||||
public function testRemoveForGroupToEmpty()
|
public function testRemoveForGroupToEmpty()
|
||||||
{
|
{
|
||||||
echo "\n== DEBUG ==\n";
|
echo "\n== DEBUG ==\n";
|
||||||
|
echo "Server ACL default: " . $GLOBALS['egw_info']['server']['acl_default']."\n";
|
||||||
// Set up
|
// Set up
|
||||||
$acl = new Acl($this->group_id);
|
$acl = new Acl($this->group_id);
|
||||||
$acl->add_repository(static::APP, $GLOBALS['egw_info']['user']['account_id'], $this->group_id, Acl::ADD);
|
$acl->add_repository(static::APP, $GLOBALS['egw_info']['user']['account_id'], $this->group_id, Acl::ADD);
|
||||||
$acl->read_repository();
|
$acl->read_repository();
|
||||||
|
$this->assertTrue($acl->check($GLOBALS['egw_info']['user']['account_id'], Acl::ADD, static::APP));
|
||||||
|
|
||||||
echo "\nBefore:\n";
|
echo "\nBefore:\n";
|
||||||
var_dump($acl->get_all_rights($GLOBALS['egw_info']['user']['account_id']));
|
var_dump($acl->get_all_rights($GLOBALS['egw_info']['user']['account_id']));
|
||||||
echo "Data:\n";
|
|
||||||
var_dump($data);
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'allow' => false,
|
'allow' => false,
|
||||||
'account' => $this->group_id,
|
'account' => $this->group_id,
|
||||||
@ -254,11 +254,13 @@ class AclCommandTest extends CommandBase {
|
|||||||
$command = new admin_cmd_acl($data);
|
$command = new admin_cmd_acl($data);
|
||||||
$command->run();
|
$command->run();
|
||||||
|
|
||||||
|
echo "Data:\n";
|
||||||
|
var_dump($data);
|
||||||
// Check group
|
// Check group
|
||||||
$acl = new Acl($this->group_id);
|
$acl = new Acl($this->group_id);
|
||||||
$acl->read_repository();
|
$acl->read_repository();
|
||||||
echo "Rights:\n";
|
echo "Rights:\n";
|
||||||
var_dump($acl->get_all_rights($data['location']));
|
var_dump($acl->get_all_rights($data['location'], static::APP));
|
||||||
$this->assertFalse($acl->check($data['location'], Acl::ADD, static::APP));
|
$this->assertFalse($acl->check($data['location'], Acl::ADD, static::APP));
|
||||||
$this->assertEquals(0, $acl->get_specific_rights($data['location'], $data['app']));
|
$this->assertEquals(0, $acl->get_specific_rights($data['location'], $data['app']));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user