WP_Job_Manager_Usage_Tracking_Test S

Total Complexity 32
Dependencies 3
Dependents 0
Total lines 489
Lines of code 224
Logical lines of code 151
Comment lines 169
Methods 25
Properties 2

Methods 25

Method Rating Maintainability Complexity Lines of code
testSystemDataStructure()
S
47 3 33
testSendEvent()
S
49 2 31
testAdminRequestFailedNonce()
S
58 2 14
testAdminRequestFailedAuth()
S
58 2 14
countScheduleEvent()
S
68 2 7
allowCurrentUserToEnableTracking()
S
68 2 8
testSendEventWithTrackingDisabled()
S
61 1 12
testScheduleTrackingTask()
S
62 1 11
setUp()
S
72 1 5
countHttpRequest()
S
76 1 4
adminDieHandlerCallback()
S
72 1 5
adminDieHandler()
S
80 1 3
basicDataCallback()
S
80 1 3
setupOptInDialog()
S
77 1 4
setupAdminRequest()
S
69 1 6
testDoNotDisplayTrackingOptInWhenSettingEnabled()
S
70 1 6
testDoNotDisplayTrackingOptInWhenUserNotAuthorized()
S
70 1 6
testDoNotDisplayTrackingOptInWhenDialogHidden()
S
68 1 7
testCronJobActionAdded()
S
77 1 3
testDisplayTrackingOptIn()
S
73 1 5
testSendUsageData()
S
65 1 9
testAdminRequestDisableTracking()
S
65 1 8
testAdminRequestEnableTrackingSendsData()
S
68 1 7
testAdminRequestEnableTracking()
S
66 1 8
trackHttpRequest()
S
72 1 5