|
@@ 1165-1173 (lines=9) @@
|
| 1162 |
|
* @see \eZ\Publish\API\Repository\RoleService::addPolicy() |
| 1163 |
|
* @depends eZ\Publish\API\Repository\Tests\RoleServiceTest::testAddPolicyUpdatesRole |
| 1164 |
|
*/ |
| 1165 |
|
public function testAddPolicySetsPolicyProperties($roleAndPolicy) |
| 1166 |
|
{ |
| 1167 |
|
list($role, $policy) = $roleAndPolicy; |
| 1168 |
|
|
| 1169 |
|
$this->assertEquals( |
| 1170 |
|
array($role->id, 'content', 'create'), |
| 1171 |
|
array($policy->roleId, $policy->module, $policy->function) |
| 1172 |
|
); |
| 1173 |
|
} |
| 1174 |
|
|
| 1175 |
|
/** |
| 1176 |
|
* Test for the addPolicyByRoleDraft() method. |
|
@@ 1183-1191 (lines=9) @@
|
| 1180 |
|
* @see \eZ\Publish\API\Repository\RoleService::addPolicyByRoleDraft() |
| 1181 |
|
* @depends eZ\Publish\API\Repository\Tests\RoleServiceTest::testAddPolicyByRoleDraftUpdatesRole |
| 1182 |
|
*/ |
| 1183 |
|
public function testAddPolicyByRoleDraftSetsPolicyProperties($roleAndPolicy) |
| 1184 |
|
{ |
| 1185 |
|
list($role, $policy) = $roleAndPolicy; |
| 1186 |
|
|
| 1187 |
|
$this->assertEquals( |
| 1188 |
|
array($role->id, 'content', 'create'), |
| 1189 |
|
array($policy->roleId, $policy->module, $policy->function) |
| 1190 |
|
); |
| 1191 |
|
} |
| 1192 |
|
|
| 1193 |
|
/** |
| 1194 |
|
* Test for the publishRoleDraft() method. |