16 use Monolog\Test\TestCase;
29 $expectedArray =
null;
30 if ($version == ApiVersion::V1)
33 "perm" =>
"Group perm",
35 "group_name" =>
"fossy",
39 "perm" =>
"Group perm",
41 "groupName" =>
"fossy",
46 'expectedArray' => $expectedArray,
74 $expectedArray = $info[
'expectedArray'];
75 $groupPermission = $info[
'obj'];
76 $this->assertEquals($expectedArray, $groupPermission->getArray($version));
86 $this->assertEquals(
"Group perm", $groupPermission->getPerm());
97 $groupPermission->setPerm(
"New perm");
98 $this->assertEquals(
"New perm", $groupPermission->getPerm());
109 $this->assertEquals(
"4", $groupPermission->getGroupPk());
120 $groupPermission->setGroupPk(
"10");
121 $this->assertEquals(
"10", $groupPermission->getGroupPk());
132 $this->assertEquals(
"fossy", $groupPermission->getGroupName());
143 $groupPermission->setGroupName(
"newName");
144 $this->assertEquals(
"newName", $groupPermission->getGroupName());
getGroupPermissionInfo($version=ApiVersion::V2)