WP_Job_Manager_Usage_Tracking_Test S

Total Complexity 36
Dependencies 3
Dependents 0
Total lines 513
Lines of code 244
Logical lines of code 166
Comment lines 175
Methods 26
Properties 2

Methods 26

Method Rating Maintainability Complexity Lines of code
testSystemDataStructure()
S
47 3 33
testSendEvent()
S
49 2 31
testAjaxRequestDisableTracking()
S
59 2 14
testAjaxRequestFailedNonce()
S
58 2 14
testAjaxRequestFailedAuth()
S
58 2 14
testAjaxRequestEnableTracking()
S
59 2 14
testAjaxRequestEnableTrackingSendsData()
S
60 2 13
countScheduleEvent()
S
68 2 7
allowCurrentUserToEnableTracking()
S
68 2 8
testSendEventWithTrackingDisabled()
S
61 1 12
testScheduleTrackingTask()
S
62 1 11
countHttpRequest()
S
76 1 4
setupOptInDialog()
S
77 1 4
ajaxDieHandlerCallback()
S
72 1 5
ajaxDieHandler()
S
80 1 3
basicDataCallback()
S
80 1 3
setUp()
S
72 1 5
testDoNotDisplayTrackingOptInWhenSettingEnabled()
S
72 1 6
setupAjaxRequest()
S
69 1 6
testDoNotDisplayTrackingOptInWhenUserNotAuthorized()
S
72 1 6
testDoNotDisplayTrackingOptInWhenDialogHidden()
S
70 1 6
testCronJobActionAdded()
S
77 1 3
testDisplayTrackingOptIn()
S
74 1 5
testSendUsageData()
S
65 1 9
testAjaxRequestSetup()
S
77 1 3
trackHttpRequest()
S
72 1 5