Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
00e2484d
Commit
00e2484d
authored
5 years ago
by
eileenmcnaugton
Browse files
Options
Downloads
Patches
Plain Diff
Update testGetActivityAccessCiviCRMEnough test for clarity
parent
2e5c58fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/phpunit/api/v3/ACLPermissionTest.php
+7
-3
7 additions, 3 deletions
tests/phpunit/api/v3/ACLPermissionTest.php
with
7 additions
and
3 deletions
tests/phpunit/api/v3/ACLPermissionTest.php
+
7
−
3
View file @
00e2484d
...
...
@@ -571,15 +571,19 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {
}
/**
*
View all activities is required unless id is passed in, in which case ACLs are used
.
*
Check the error message is not a permission error
.
*/
public
function
testGetActivityAccessCiviCRM
Not
Enough
()
{
public
function
testGetActivityAccessCiviCRMEnough
()
{
$activity
=
$this
->
activityCreate
();
$this
->
setPermissions
([
'access CiviCRM'
]);
$this
->
callAPIFailure
(
'Activity'
,
'getsingle'
,
[
'check_permissions'
=>
1
,
'id'
=>
$activity
[
'id'
],
]);
],
'Expected one Activity but found 0'
);
$this
->
callAPISuccessGetCount
(
'Activity'
,
[
'check_permissions'
=>
1
,
'id'
=>
$activity
[
'id'
],
],
0
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment