|
@@ 756-767 (lines=12) @@
|
| 753 |
|
); |
| 754 |
|
} |
| 755 |
|
|
| 756 |
|
public function testDeletePolicyLimitations() |
| 757 |
|
{ |
| 758 |
|
$handler = $this->getUserHandler(); |
| 759 |
|
|
| 760 |
|
$roleDraft = $this->createRole(); |
| 761 |
|
$handler->deletePolicy($roleDraft->policies[0]->id, $roleDraft->policies[0]->roleId); |
| 762 |
|
|
| 763 |
|
$this->assertQueryResult( |
| 764 |
|
array(array(3, 'Foo', 2)), |
| 765 |
|
$this->handler->createSelectQuery()->select('*')->from('ezpolicy_limitation') |
| 766 |
|
); |
| 767 |
|
} |
| 768 |
|
|
| 769 |
|
public function testDeletePolicyLimitationValues() |
| 770 |
|
{ |
|
@@ 769-780 (lines=12) @@
|
| 766 |
|
); |
| 767 |
|
} |
| 768 |
|
|
| 769 |
|
public function testDeletePolicyLimitationValues() |
| 770 |
|
{ |
| 771 |
|
$handler = $this->getUserHandler(); |
| 772 |
|
|
| 773 |
|
$roleDraft = $this->createRole(); |
| 774 |
|
$handler->deletePolicy($roleDraft->policies[0]->id, $roleDraft->policies[0]->roleId); |
| 775 |
|
|
| 776 |
|
$this->assertQueryResult( |
| 777 |
|
array(array(4, 3, 'Blubb')), |
| 778 |
|
$this->handler->createSelectQuery()->select('*')->from('ezpolicy_limitation_value') |
| 779 |
|
); |
| 780 |
|
} |
| 781 |
|
|
| 782 |
|
public function testUpdatePolicies() |
| 783 |
|
{ |