Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Development
Core
Commits
939fd7f3
Unverified
Commit
939fd7f3
authored
Mar 16, 2019
by
Seamus Lee
Committed by
GitHub
Mar 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13832 from eileenmcnaughton/logging
Logging - attempt to fix tests
parents
7e3b1cb9
d7a2d315
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tests/phpunit/api/v3/LoggingTest.php
tests/phpunit/api/v3/LoggingTest.php
+4
-1
No files found.
tests/phpunit/api/v3/LoggingTest.php
View file @
939fd7f3
...
...
@@ -412,6 +412,9 @@ class api_v3_LoggingTest extends CiviUnitTestCase {
$contactId
=
$this
->
individualCreate
();
$this
->
callAPISuccess
(
'Setting'
,
'create'
,
array
(
'logging'
=>
TRUE
));
CRM_Core_DAO
::
executeQuery
(
"SET @uniqueID = 'wooty wop wop'"
);
// Perhaps if initialize & create are exactly the same time it can't cope.
// 1 second delay
sleep
(
1
);
$this
->
callAPISuccess
(
'Contact'
,
'create'
,
array
(
'id'
=>
$contactId
,
'first_name'
=>
'Dopey'
,
...
...
@@ -443,7 +446,7 @@ class api_v3_LoggingTest extends CiviUnitTestCase {
return
TRUE
;
}
}
throw
new
CRM_Core_Exception
(
"No match found for key :
$expectKey
with value :
$expectValue
"
);
throw
new
CRM_Core_Exception
(
"No match found for key :
$expectKey
with value :
$expectValue
"
.
print_r
(
$diffs
,
1
)
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment