9 require_once
'PU_testcase_dcp_application.php';
17 "appRoot" => join(DIRECTORY_SEPARATOR, array(
22 "appName" =>
"INHERIT_ACL_A",
25 "appRoot" => join(DIRECTORY_SEPARATOR, array(
30 "appName" =>
"INHERIT_ACL_B",
32 "PU_data_dcp_app_inherit_acl.ods"
48 $myAction = self::getAction();
51 $this->assertTrue(
$user->isAlive() , sprintf(
"Could not get user with id '%s'.", $userId));
54 $this->assertTrue(is_numeric($wuser->id) , sprintf(
"Invalid user what id '%s' for user '%s'.", $wuser->id, $userId));
56 $this->
sudo($wuser->login);
58 $perm = $myAction->hasPermission($aclName, $appName);
59 $this->assertTrue($perm === $expectedPermission, sprintf(
"Unexpected permission '%s' while expecting '%s' for user '%s', ACL '%' and application '%s'.", ($perm ?
'true' :
'false') , ($expectedPermission ?
'true' :
'false') , $userId, $aclName, $appName));
69 "TST_U_INHERIT_ACL_1",
75 "TST_U_INHERIT_ACL_1",
81 "TST_U_INHERIT_ACL_1",
87 "TST_U_INHERIT_ACL_1",
testInheritedAcl($appName, $aclName, $userId, $expectedPermission)
static dataInheritedAcl()